View previous topic :: View next topic |
Author |
Message |
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Fri Jan 20, 2006 12:55 pm Post subject: Crontab Script Backup |
|
|
I have an extra HD mounted that is big enough to hold multiple backups, I'd like to created an automated backup rotation, like 7 or so copies.
Any suggestions? _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
Prompty Apprentice
Joined: 08 Feb 2004 Posts: 292
|
Posted: Fri Jan 20, 2006 1:07 pm Post subject: |
|
|
From the top of my head... sync (rsync ;]) _________________ <input stupid message here> |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Fri Jan 20, 2006 1:15 pm Post subject: |
|
|
Code: | NAME
sync - flush filesystem buffers
|
^--- I don't see how that would help...
And the rsync looks a bit overkill for what I'm doing, the hard drive I'm backing up to is *on* this local machine. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
Prompty Apprentice
Joined: 08 Feb 2004 Posts: 292
|
Posted: Fri Jan 20, 2006 1:24 pm Post subject: |
|
|
what exactly are you trying to backup? (how much data)
How periodical will those backup be?
Do you want to have multiple backups?
Note: rsync is just a mechanism ... it's fairly good if you want to keep one up-to-date backup, done in periods of time. Much better (and safer?) the doing a software raid ;] _________________ <input stupid message here> |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Fri Jan 20, 2006 1:44 pm Post subject: |
|
|
Prompty wrote: | what exactly are you trying to backup? (how much data)
How periodical will those backup be?
Do you want to have multiple backups?
Note: rsync is just a mechanism ... it's fairly good if you want to keep one up-to-date backup, done in periods of time. Much better (and safer?) the doing a software raid ;] |
How much data? Mmmm... about ~5 Gb worth.
Hrm... looking at this, I only have a 10Gb backup part on this Hd.... thought I had more.
So just one copy, to be done once a month. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
Prompty Apprentice
Joined: 08 Feb 2004 Posts: 292
|
Posted: Fri Jan 20, 2006 2:35 pm Post subject: |
|
|
Than once again ... I suggest rsync it's really all you need.
If not have a look here: (prolly some useful software)
http://www.linux.org/apps/all/Administration/Backup.html
I gather it's not a commercial server so:
My suggestions if you want to backup data into the same server:
- partition the backup hd so you can have TWO backups (done ,say every 15 days - one on 15th and one on 30th of each month).
- Every month make a backup of your /etc/ and /var/ onto a cd (cd-rw would suffice)
- encrypt your /home and /root partitions (on the backup) if you keep any sensitive data there
<edit>
in my personal expirience backula and cdbackup are nice ... though they may nto exactly suit your needs
<edit once more>
http://migas.mine.nu//index.php?pag=en.myapps&subpag=simplebackup _________________ <input stupid message here> |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Wed Jan 25, 2006 7:06 pm Post subject: |
|
|
Lemme restate, I now have 70Gb for backup (re-arranged some partitions).
So, Maybe a 7 day full backup rotation then? _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Wed Jan 25, 2006 8:03 pm Post subject: |
|
|
Woah, just read over and currently using simple backup.
Amazing... _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Wed Jan 25, 2006 9:24 pm Post subject: |
|
|
Does rar save permissions? _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
Boris27 Guru
Joined: 05 Nov 2003 Posts: 562 Location: Almelo, The Netherlands
|
Posted: Wed Jan 25, 2006 9:34 pm Post subject: Re: Crontab Script Backup |
|
|
bigun89 wrote: | I have an extra HD mounted that is big enough to hold multiple backups, I'd like to created an automated backup rotation, like 7 or so copies.
Any suggestions? |
Have a look at rsback http://www.pollux.franken.de/hjb/rsback/
It uses rsync, so it's probably a bit overkill for your needs, but should do fine. _________________ we are microsoft, lower your firewalls and surrender your pc's. we will add your biological and technological distinctiveness to our own. your culture will adapt and service us. resistance is futile. |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Thu Jan 26, 2006 2:57 pm Post subject: |
|
|
Giving it a shot now. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Thu Jan 26, 2006 6:45 pm Post subject: |
|
|
Which directories would you guys say are safely skippable?
I'm assuming /tmp and /proc.... any others? _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
tost Guru
Joined: 10 Dec 2005 Posts: 506
|
Posted: Thu Jan 26, 2006 6:49 pm Post subject: |
|
|
/dev and /sys and may the contents of usr/portage/distfiles
tost |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2198
|
Posted: Thu Jan 26, 2006 6:52 pm Post subject: |
|
|
Gah... rsback get's finished then spits this out at me:
Code: | Number of files: 437625
Number of files transferred: 386664
Total file size: 5811886699 bytes
Total transferred file size: 5811774377 bytes
Literal data: 5811021139 bytes
Matched data: 0 bytes
File list size: 9661119
Total bytes written: 5838193306
Total bytes read: 7733300
wrote 5838193306 bytes read 7733300 bytes 1436875.16 bytes/sec
total size is 5811886699 speedup is 0.99
rsync error: some files could not be transferred (code 23) at main.c(632)
rsback: backup command '/usr/bin/rsync -al --delete --delete-excluded --stats -v --exclude-from=/etc/rsback/rsback.exclude --exclude-from=/etc/rsback/rsback.exclude / /mnt/backup/system_backup/daily.0' failed: 5888
rsback: back-rotating previous backup sets daily.7 .. daily.0
rsback: backup command '/usr/bin/rsync -al --delete --delete-excluded --stats -v --exclude-from=/etc/rsback/rsback.exclude --exclude-from=/etc/rsback/rsback.exclude / /mnt/backup/system_backup/daily.0' failed: 5888
|
I have plenty of room on this drive, so that's not the issue. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
|