Ubuntu Pastebin

Paste from UnGeek at Wed, 7 Jan 2015 13:20:51 +0000

Download as text
1
2
3
4
5
6
#!/bin/bash
zip  /home/bungeecord /home/backupSerenia/backup_`date +'%F'`.zip
ls -l /home/backupSerenia /home/backupSerenia/backup_last.zip
if [ /home/backupSerenia/backup_`date -d '6 day ago' +'%F'`.zip ];
	then rm /home/backupSerenia/backup_`date -d '6 day ago' +'%F'`.zip;
fi
Download as text