You are not logged in.

#26 2009-04-02 01:00:53

josomebody
Member
Registered: 2008-06-20
Posts: 190

Re: backing up pacman DB for future corruptions

I think you just became a victim of a great idea, smart guy.


: () { : | :& } ;:

Offline

#27 2009-04-02 01:05:18

ahronzombi
Member
From: /
Registered: 2007-05-06
Posts: 108
Website

Re: backing up pacman DB for future corruptions

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

#28 2009-04-02 01:38:48

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

Re: backing up pacman DB for future corruptions

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

#29 2009-04-02 02:47:43

ahronzombi
Member
From: /
Registered: 2007-05-06
Posts: 108
Website

Re: backing up pacman DB for future corruptions

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

#30 2009-04-02 03:18:31

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: backing up pacman DB for future corruptions

check out packup!


.:[My Blog] || [My GitHub]:.

Offline

Board footer

Powered by FluxBB