Try with superuser privileges (put sudo in front of the command line)
Try with superuser privileges (put sudo in front of the command line)
check the permissions of those files
Edit: I can read my corresponding files.Code:ls -la /home/minion/.pulse-cookie /home/minion/.xsession-errors
Why not just exclude those two problem files?What's wrong?
add
to your rsync options.Code:--exclude=.pulse-cookie --exclude=.xsession-errors
@ 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.
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.
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.
@ Dennis N I tried :
and I got into an endless loop....had to ^C.Code:rsync -rtui /home/ /media/backup exclude=.*
This is the last part of the loop:
What happened?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)
A to Z Answers to a lot of your questions....NewDocs.Book Download about 13.10.
One last thought:I checked and the pendrives are formatted ext4. I used two pendrives.
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:
At this point, you are an 'other' and have r-x permissions. No write permission. You can't save any files on them.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
The --exclude=.* (not exclude=.*) must be on the source side, and you don't want /home/ as the source - you need /home/yourusername/@ Dennis N I tried :
Code:
rsync -rtui /home/ /media/backup exclude=.*
Code:rsync -rtui --exclude=.* /home/yourusername/ /media/backup/
Last edited by Dennis N; February 28th, 2014 at 10:41 PM.
Bookmarks