Results 1 to 3 of 3

Thread: Backups

  1. #1



    I have rsync backups set up to pull from the /backup folder from one vps to another. On the source vps, cpanel is setup to run and last night I see a folder /backup/2013-11-21. However, in my backup vps, under the backup folder are 5 directories: cpanel, etc, home, root, and var ... they appear to contain valid files from the source vps, but doesn't look like /backup/2013-11-21.

    Why don't the backups look the same?

  2. #2
    Join Date
    Nov 2001
    Ashburn, VA
    Check your slashes. With a trailing slash on your src dir, you get only the contents of that dir. Without the slash, you get the entire dir.

    For example let’s say you have a directory called /stuff which contains 2 files: file1 & file2:

    rsync -avz /stuff/ -e ssh [email protected]:/backup/dir/
    Will produce: /backup/dir/file1 & /backup/dir/file2

    Now take the same command, and remove that trailing slash on /stuff:

    rsync -avz /stuff -e ssh [email protected]:/backup/dir/
    Will produce: /backup/dir/stuff/file1 & /backup/dir/stuff/file2
    Affordable web hosting, design, & domain registration services since 2001

  3. #3
    Join Date
    Nov 2011
    or it could be that the backup was not finished by the time you run the rsync, so you grabbed the folders that were supposed to be in the archive...

    as serve-you mentioned, maybe you're using rsync wrong. can you give us the rsync command that you're using ?
    It's official: WE'RE CRAZY!!!

Similar Threads

  1. Replies: 0
    Last Post: 04-02-2013, 05:41 PM
  2. Replies: 0
    Last Post: 01-15-2013, 08:15 PM
  3. Replies: 0
    Last Post: 12-21-2012, 02:54 AM
  4. Replies: 0
    Last Post: 12-10-2012, 02:04 PM
  5. Replies: 0
    Last Post: 12-03-2012, 11:09 AM

Posting Permissions

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