Find the answer to your Linux question:
Results 1 to 5 of 5
Hi Team, I want to write a script which will take a backup of my home directory. But will only backup the changes made in files not whole home directory. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    25

    Backup home directory


    Hi Team,

    I want to write a script which will take a backup of my home directory. But will only backup the changes made in files not whole home directory. I want to upload that on server. I don't have any idea. please help me.

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    For whole file rsync ... see here - I'm using the snapshot script at the bottom of the linked page

  3. #3
    Just Joined!
    Join Date
    Dec 2005
    Posts
    9
    rsync is good. First execution will copy everything. Subsequent executions will only copy changes. Use "--delete" option to remove deleted files from the backup if desired.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    664
    Of course, you could look at "Back in Time" which (uses rsync inside) and has a GUI and a scheduler as well. But unlike using rsync only, you can go back to a version of a file that has since been replaced by a newer version in the backup.

  6. #5
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    The script at the bottom of the page I linked to does a backup if sufficient has changed ... using date for the directory tree so you can access old information. There are lots of options but what works best is down to requirements and personal preference

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •