Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: [12.04] Error using rsync to backup...

  1. #11
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: [12.04] Error using rsync to backup...

    Try with superuser privileges (put sudo in front of the command line)

  2. #12
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: [12.04] Error using rsync to backup...

    check the permissions of those files

    Code:
    ls -la /home/minion/.pulse-cookie /home/minion/.xsession-errors
    Edit: I can read my corresponding files.

  3. #13
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,665

    Re: [12.04] Error using rsync to backup...

    What's wrong?
    Why not just exclude those two problem files?

    add

    Code:
    --exclude=.pulse-cookie --exclude=.xsession-errors
    to your rsync options.

  4. #14
    Join Date
    Jan 2014
    Location
    Statham,GA USA
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [12.04] Error using rsync to backup...

    @ Dennis N - That readout was truncated. There are a LOT of .hidden files and folders.

    @ sudodus - Permissions on those files are -rw------.
    Last edited by bc.haynes; February 28th, 2014 at 05:16 PM.
    A to Z Answers to a lot of your questions....NewDocs.
    Book Download about 13.10.

  5. #15
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,665

    Re: [12.04] Error using rsync to backup...

    Quote Originally Posted by bc.haynes View Post
    @ Dennis N - That readout was truncated. There are a LOT of .hidden files and folders.

    @ sudodus - Permissions on those files are -rw------.
    Well, on my computer many hidden files in the home folder have the same permissions. And I am the owner of all of them. I made a little test, and rsync transfered files with 600 permissions (rw for owner only = rw------) without complaining. Are you the owner of those files? If so, I don't understand the problem.

    On my home backup, I have an exclude on ALL hidden files and folders, since as you say there are quite a few, and some can be large. I manually backup the ones I think are useful, like .bash_aliases and ~/.fonts for example. I am not interested in backing up .xsession-errors or ~/.pulse.

    To exclude all hidden files (and folders) I use --exclude=.*
    Last edited by Dennis N; February 28th, 2014 at 06:26 PM.

  6. #16
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: [12.04] Error using rsync to backup...

    Quote Originally Posted by Dennis N View Post
    Well, on my computer many hidden files in the home folder have the same permissions. And I am the owner of all of them. I made a little test, and rsync transfered files with 600 permissions (rw for owner only = rw------) without complaining. Are you the owner of those files? If so, I don't understand the problem.
    ...
    +1

    Are you the owner of those files, or do they belong to another user (other than the user running the backup)?

  7. #17
    Join Date
    Jan 2014
    Location
    Statham,GA USA
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [12.04] Error using rsync to backup...

    This is a single user computer. I am the only user on it.
    A to Z Answers to a lot of your questions....NewDocs.
    Book Download about 13.10.

  8. #18
    Join Date
    Jan 2014
    Location
    Statham,GA USA
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [12.04] Error using rsync to backup...

    @ Dennis N I tried :
    Code:
    rsync -rtui /home/ /media/backup exclude=.*
    and I got into an endless loop....had to ^C.
    This is the last part of the loop:
    Code:
    >f+++++++++ ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/.mozilla/firefox/g4hy8dln.default/times.json
    >f+++++++++ ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/.mozilla/firefox/g4hy8dln.default/urlclassifierkey3.txt
    >f+++++++++ ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/exclude=.*/ben/.mozilla/firefox/g4hy8dln.default/webappsstore.sqlite
    ^C^C^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(549) [sender=3.0.9]
    rsync: writefd_unbuffered failed to write 97 bytes to socket [generator]: Broken pipe (32)
    What happened?
    A to Z Answers to a lot of your questions....NewDocs.
    Book Download about 13.10.

  9. #19
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,665

    Re: [12.04] Error using rsync to backup...

    I checked and the pendrives are formatted ext4. I used two pendrives.
    One last thought:

    After formatting them ext4 (with gparted I presume?) these pendrives would be owned by root. Did you also change owner and group of the filesystem to your username? Otherwise, you cannot save anything to these drives, nor could rsync when run in your username.

    New flash drive after the filesystem is formatted ext4 with gparted:
    Code:
    dmn@Zotac:/media/dmn$ ls -l
    total 20
    drwxr-xr-x  3 root root 4096 Feb  8 09:13 9a537b36-f577-4617-9366-a652c87f0454
    At this point, you are an 'other' and have r-x permissions. No write permission. You can't save any files on them.

  10. #20
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,665

    Re: [12.04] Error using rsync to backup...

    @ Dennis N I tried :
    Code:

    rsync -rtui /home/ /media/backup exclude=.*
    The --exclude=.* (not exclude=.*) must be on the source side, and you don't want /home/ as the source - you need /home/yourusername/

    Code:
    rsync -rtui --exclude=.* /home/yourusername/ /media/backup/
    Last edited by Dennis N; February 28th, 2014 at 10:41 PM.

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

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