Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun May 04, 2008 6:52 am 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
hy!
some time a go i made a dd image of my fedora 8 linode partition and downloaded it to my desktop pc. besides that the image was huge it didnt contain partition data and i was unable to mount it. because i only have ntfs partitions on my desktop i couldn repair it with knoppix...

so now i think of just copying important dirs onto my desktop on a regular basis using scp.

which directories are not senseful to backup, because they dont contain any user-application related settings or directories (/mnt, /dev) ?

my goal is to have a backup that i can restore after a new install of fedora and everything is up and running again. after my last failure, when i accidentaly deleted /bin i could recover by copying the bin dir from another fedora partition..
thx!


Top
   
 Post subject:
PostPosted: Sun May 04, 2008 11:23 am 
Offline
Senior Newbie

Joined: Sat Feb 02, 2008 4:44 pm
Posts: 7
Website: http://www.inmostlight.org/
Location: San Francisco, California
I typically back up three directories every night, via rsync:

* /etc
* /home
* /usr/local

I've got a nightly cron job that dumps and gzips MySQL databases into a directory under /home, so I get those as well, and also generates a list of packages installed via the package manager so I've always got an up-to-date list along with my backup.

If I ever need to restore a system, I can start with the base OS, add the packages from the list, and then copy the data and configurations over, and I'll back up and running.

_________________
Kenn Wilson
:: Personal :: Corvid Works :: Hextractor :: Cocktailia


Top
   
 Post subject:
PostPosted: Sun May 04, 2008 12:42 pm 
Offline
Senior Member

Joined: Tue Apr 27, 2004 5:10 pm
Posts: 212
Do you have another linux PC somewhere from which you can perform backups? If so, check out either rsnapshot or rdiff-backup. Either of those will let you do incremental backups of your data over ssh. They're both really easy to set up, and they can provide whatever level of backup granularity you want, down to hourly backups if you desire. I've been using rsnapshot for about 4 years on my linode, and it's worked great.

Another option is outlined in this post. It involves using duplicity on your linode to generate encrypted backup files and then sending them off to Amazon's S3 for storage. I'm in the midst of switching over to this backup method right now actually.

Hope that helps...


Top
   
 Post subject:
PostPosted: Sun May 04, 2008 1:59 pm 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
thanks!


Top
   
 Post subject:
PostPosted: Mon Nov 24, 2008 4:22 pm 
Offline
Senior Newbie

Joined: Wed Nov 19, 2008 10:09 pm
Posts: 18
kwilson wrote:
I typically back up three directories every night, via rsync:

* /etc
* /home
* /usr/local

I've got a nightly cron job that dumps and gzips MySQL databases into a directory under /home, so I get those as well, and also generates a list of packages installed via the package manager so I've always got an up-to-date list along with my backup.

If I ever need to restore a system, I can start with the base OS, add the packages from the list, and then copy the data and configurations over, and I'll back up and running.


Hi kwilson. is your way of taking the backup
also keeping your modifications ?
I mean apache installed modules, mysql configurations and php as well?


Top
   
 Post subject:
PostPosted: Mon Nov 24, 2008 5:10 pm 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
on most distrobutions you only need to keep your config because everything else is binaryies that you downloaded via apt/yum. so in most cases yes, you only need /etc for your config.

if your going compiling your own packages from source or elsewhere, then you might need to alter your backup stragegy. Backups typically arent a "1 size fits all" system. You need to tailor it to your needs.


I personally back up
+ /etc
+ /var/log
+ /root
+ /var/lib/mysql
+ /home/nf
+ /home/hosting
+ /var/cache/mylvmbackup/backup

_________________
ServerAdmin - www.our-lan.com
"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"
"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
 Post subject:
PostPosted: Sat Nov 29, 2008 1:02 pm 
Offline
Newbie

Joined: Sat Nov 29, 2008 12:59 pm
Posts: 4
Website: http://seanwalberg.com
I use Amanda at home to backup my workstation, mythtv box, and server, so I added my VPS to the lineup.


Top
   
 Post subject:
PostPosted: Sat Nov 29, 2008 8:15 pm 
Offline
Senior Member

Joined: Mon Jul 30, 2007 9:55 pm
Posts: 80
A simple rsync shell script will suit most. I run mine on a schedule from my kid's Windows XP machine (which has Cygwin installed).

Here's my script, in case it's of any use. Requires bash, rsync, coreutils, and (optionally) a mailer - i.e. mailx on *nix, email for Cygwin.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group