Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to backup the important files on my main server to a backup server.
I've established that using rsync might be a good way to do this.
I've been looking at rsback http://www.pollux.franken.de/hjb/rsback/ for a front-end for making rotating backups.
But so far I'm stuck with rsync. I keep getting "read-only filesystem" errors, just running the command :
I have read that this might be due to no having read-only = no in the rsyncd.conf, but I don't have one as I'm not running rsync daemonized.
I can't get a clear picture of the pros and cons of running rsync daemonized, and whether or not it would be adapted to my needs.
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
Can you post the exact error here please.
It is possible you are trying to write to a disk that is full, or mounted read only. Check the fstab on the destination machine.
Rsync must also be installed on both the Source and Destination machines for rsync to work. Obviously, if you are using ssh to connect, the destination must have a SSH server configured and accepting connections on port 22.
I can't see anything wrong with your command though, but check the man page for rsync to find out any other options that may be useful.
Thank you very much for answering.
There must be something seriously wrong with that machine, because not it can't get past a grub prompt.
At this point I'd settle for being able to make a one-time backup out to a network share, but rsync won't copy most of the files, I get "operation not permitted".
Is there any way to force rsync to backup all the files ?
I'm using rsync -av /home /mnt/usb80/yoruban_backup/
and getting : rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/domains/yoruban.dyndns.org/testmailing/gothrough/subscribers" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/domains/yoruban.dyndns.org/testmailing/mod" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/domains/yoruban.dyndns.org/testmailing/mod/accepted" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/domains/yoruban.dyndns.org/testmailing/mod/pending" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/domains/yoruban.dyndns.org/testmailing/mod/rejected" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/domains/yoruban.dyndns.org/testmailing/mod/subscribers" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/domains/yoruban.dyndns.org/testmailing/subscribers" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/domains/yoruban.dyndns.org/testmailing/text" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/etc" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/include" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/vpopmail/lock" failed: Operation not permitted (1)
rsync: chown "/mnt/usb80/yoruban_backup/home/zebolue" failed: Operation not permitted (1)
I'm sorry I wasn't very clear.
Those last error messages I posted are just trying to copy the files to a usb drive.
I can't even get that to work correctly, as you can see, and I'd really like to solve it.
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
Can you try copying the files directly to the USB stick, using the cp command? If not, check that the USB stick is not being mounted readonly. Enter the command "mount", and you can see what devices are mounted where, and if they are readonly or read-write.
I am not sure if rsync can be used locally, or maybe some extra switches are needed. See the man pages for this.
I tried cp, gives a lot of errors.
rsync gets some of the files, not all, so I guess the usb disk is getting mounted rw.
I've been looking for the rsync switches, but can't find anything...
stuck...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.