Results 1 to 4 of 4

Thread: Problem with rsync

  1. #1
    Join Date
    Dec 2008
    Location
    Montana, USA
    Posts
    550

    Default Problem with rsync

    I'm trying to use rsync as a backup tool.
    Specifically, as root,

    Code:
    rsync -Cacv / /mnt/Buffalo/Bart/Backups/2015-04-17/
    Everything seems to go along well until it gets into the mail subdirectory (evolution). Then, it stops on one of the files. Not any one in particular, but on one of the files.

    I let it sit overnight to be sure the computer wasn't busy. It was at the same place when I got up.

    I tried adding --exclude /home/bart/.local/share/evolution/mail/local/* to the command line but that didn't help.

    I issued
    Code:
    evolution --force-shutdown
    to be sure all files were closed. No difference.

    What am I doing wrong?

    Bart

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,814

    Default Re: Problem with rsync

    You have to be careful with root directory there are sub-didrectories that are not real they need to be excluded.

    Short list

    /dev devices
    /mnt things get mounted there should not be anything in there anyway
    /proc these are the virtual files that represent all running process. nothing here to back up move on
    /sys these are virtual files representing the state of the system nothing here to back up move on

    Eliminate those from the backup there are "files" there that are as big as the address space of the processor this can case a problem or three.

  3. #3
    Carlos E. R. NNTP User

    Default Re: Problem with rsync

    On 2015-04-19 23:56, gogalthorp wrote:
    > /proc these are the virtual files that represent all running process.
    > nothing here to back up move on


    And one of them is really HUGE. ;-)

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  4. #4
    Join Date
    Dec 2008
    Location
    Montana, USA
    Posts
    550

    Default Re: Problem with rsync

    I do have a NAS device that shows up in /mnt. You're right, that could cause a bunch of problems. Looks like I should create a file that has the subdirectories that should be ignored. I don't quite understand how to specify it though.

    AND I guess I should add an "n" to the command while I test this whole thing out, ya think?

    I eventually want to create a script that will back up everything if called by root, or the home directory if called by a user other than root. Is there a better backup system? Without using a cron job? I want to do it when I want. Seems like someone else would have wanted to do this before I thought of it.

    Bart

Posting Permissions

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