LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-20-2003, 08:59 PM   #1
blixel
LQ Newbie
 
Registered: Sep 2003
Posts: 22

Rep: Reputation: 15
How to syncronize/backup my home directory?


Is there a switch for cp that will let me syncronize files between two locations? I want to backup the entire contents of my home directory on a daily basis but rather than doing a "blind" copy from point A to poin B, I want cp to mirror my home directory structure so that any files or directories that have been renamed, moved, or deleted will also be renamed, moved, or deleted at the destination.

I suppose I could rm -rf the old location before each copy but I'm hoping for a better solution.

It doesn't have to be cp either. If there's some other command that will work better, that's fine too. I looked into tar'ing my home directory but I don't see any mirror/remove old files/sync options for tar either.
 
Old 10-20-2003, 10:06 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
If the purpose of this daily backups is because you installing a lot of software to try out and want to go backwards to a prev install can I suggest you check out an imaging system for linux.

www.partimage.org

but, once you enter into the dark world of imaging, you won't want to stop with just your home, you will want to do others , heh heh
 
Old 10-20-2003, 10:17 PM   #3
blixel
LQ Newbie
 
Registered: Sep 2003
Posts: 22

Original Poster
Rep: Reputation: 15
I'll check out the link you provided. My reason is for wanting daily backups but not because I install a lot of software. I just want to make sure I have all my bookmarks, e-mail, desktop settings, downloads, and so on backed up regularly because all of that stuff changes daily. I could be more selective with my choices and only copy the things I need but hard-drive space isn't a problem and I'd rather have 50MB of worthless backups than miss 100K of something vital.
 
Old 10-20-2003, 10:21 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I would say this could be a two part operation, one mirroring the data (rsync comes to mind for that), and the other part would be storing the mirrored data, I would say maybe in a tar file.

look also at cpio as a solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Backup of directory sanjibgupta Linux - Networking 2 09-05-2005 12:32 AM
backup from directory with spaces dennis_89 Linux - Networking 7 06-21-2004 10:14 PM
Backup, directory, permissions. linuxgamer Linux - Distributions 0 11-19-2003 06:07 PM
Home Directories - Backup kwigibo Linux - General 1 08-23-2002 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration