Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-20-2003, 09:59 PM   #1
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, 11:06 PM   #2
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,296

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.

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, 11:17 PM   #3
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, 11:21 PM   #4
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:37 PM
Backup of directory sanjibgupta Linux - Networking 2 09-05-2005 01:32 AM
backup from directory with spaces dennis_89 Linux - Networking 7 06-21-2004 11:14 PM
Backup, directory, permissions. linuxgamer Linux - Distributions 0 11-19-2003 07:07 PM
Home Directories - Backup kwigibo Linux - General 1 08-23-2002 09:29 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:54 AM.

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