Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crontab Script Backup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Fri Jan 20, 2006 12:55 pm    Post subject: Crontab Script Backup Reply with quote

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
View user's profile Send private message
Prompty
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 292

PostPosted: Fri Jan 20, 2006 1:07 pm    Post subject: Reply with quote

From the top of my head... sync (rsync ;])
_________________
<input stupid message here>
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Fri Jan 20, 2006 1:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Prompty
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 292

PostPosted: Fri Jan 20, 2006 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Fri Jan 20, 2006 1:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Prompty
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 292

PostPosted: Fri Jan 20, 2006 2:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Wed Jan 25, 2006 7:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Wed Jan 25, 2006 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Wed Jan 25, 2006 9:24 pm    Post subject: Reply with quote

Does rar save permissions?
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
Boris27
Guru
Guru


Joined: 05 Nov 2003
Posts: 562
Location: Almelo, The Netherlands

PostPosted: Wed Jan 25, 2006 9:34 pm    Post subject: Re: Crontab Script Backup Reply with quote

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
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Thu Jan 26, 2006 2:57 pm    Post subject: Reply with quote

Giving it a shot now.
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Thu Jan 26, 2006 6:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
tost
Guru
Guru


Joined: 10 Dec 2005
Posts: 506

PostPosted: Thu Jan 26, 2006 6:49 pm    Post subject: Reply with quote

/dev and /sys and may the contents of usr/portage/distfiles

tost
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Thu Jan 26, 2006 6:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum