You are not logged in.
I think you just became a victim of a great idea, smart guy.
: () { : | :& } ;:
Offline
when i did it i though it would become a apr1l f00ls j0ke. but i needed to go to 64 anyway
Last edited by ahronzombi (2009-04-02 01:09:51)
Registered: 2007-05-05
Keep coming back to Arch because its hands down the most amazing distro God has given us.
Offline
Take a look at 'date --help' to get formatted time/date strings (the command will be of the form `date +"%a"`. Combine that with tar and you've got your command.
Offline
working with this config, doing etc and db backups with 2 locations one is temp and is deleted after 7 days, let me know if anyone sees errors
45 18 * * * /bin/tar -zcvf "/media/Backup/etcbackup-`date '+%B-%d-%Y'`.tgz
45 18 * * * /usr/bin/yaourt --backup /media/Backup
45 18 * * * /bin/tar -zcvf "/home/ahron/backups/etcbackup-`date '+%B-%d-%Y'`.tgz
45 18 * * * /usr/bin/yaourt --backup /home/ahron/backups
45 18 * * * find /home/ahron/backups -type f -name 'pacman-*bz2' -mtime +7 -delete
45 18 * * * find /home/ahron/backups -type f -name 'pacman-*tgz' -mtime +7 -delete
Registered: 2007-05-05
Keep coming back to Arch because its hands down the most amazing distro God has given us.
Offline