Bug#290905: rsync fails with error when rsyncing to a remote host (file server) running rsyncd
On (17/01/05 21:45), Thomas Wana wrote: > > Hi, > > >ERROR: module is read only > > quick question, are the permissions correct on the other end? Hi Tom I believe so: $ ls -l /root/venus drwxr-xr-x 3 root root 4096 2005-01-03 09:46 backup Regards Clive -- www.clivemenzies.co.uk ... ...strategies for business -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#290905: rsync fails with error when rsyncing to a remote host (file server) running rsyncd
Hi, > ERROR: module is read only quick question, are the permissions correct on the other end? Tom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#290905: rsync fails with error when rsyncing to a remote host (file server) running rsyncd
Package: rsync Version: 2.6.3-2 Severity: grave Justification: causes non-serious data loss A cron job currently runs an automatic backup each night from the remote file server (running rsyncd under inetd) to the backup server which runs the following script without error: #!/bin/bash # This script is called daily from cron to perform overnight backups # The full paths of the programs used in this script rm=/bin/rm mv=/bin/mv cp=/bin/cp rsync=/usr/bin/rsync mount=/bin/mount umount=/bin/umount # Good rsync options for backups. rsync_opts="-av --delete" # The name of the file containing the rsync connection password password="--password-file=/etc/.rs_pass" # Move all other backups up a level. Copy previous backup to # /backup/daily. Backup file_server according to the [rsync] sections of the # rsyncd.conf files on file_server. Use the password given in /etc/.rs_pass. # Dump any output and error messages to /var/rsync/file_server rm -rf /root/backup/snapshot/month.6 mv /root/backup/snapshot/month.5 /root/backup/snapshot/month.6 mv /root/backup/snapshot/month.4 /root/backup/snapshot/month.5 mv /root/backup/snapshot/month.3 /root/backup/snapshot/month.4 mv /root/backup/snapshot/month.2 /root/backup/snapshot/month.3 mv /root/backup/snapshot/month.1 /root/backup/snapshot/month.2 mv /root/backup/snapshot/week.4 /root/backup/snapshot/month.1 mv /root/backup/snapshot/week.3 /root/backup/snapshot/week.4 mv /root/backup/snapshot/week.2 /root/backup/snapshot/week.3 mv /root/backup/snapshot/week.1 /root/backup/snapshot/week.2 mv /root/backup/snapshot/day.6 /root/backup/snapshot/week.1 mv /root/backup/snapshot/day.5 /root/backup/snapshot/day.6 mv /root/backup/snapshot/day.4 /root/backup/snapshot/day.5 mv /root/backup/snapshot/day.3 /root/backup/snapshot/day.4 mv /root/backup/snapshot/day.2 /root/backup/snapshot/day.3 mv /root/backup/snapshot/day.1 /root/backup/snapshot/day.2 cp -al /root/backup/home /root/backup/snapshot/day.1 $rsync $rsync_opts $password file_server::rsync \ /root/backup/home/ > /var/rsync/file_server However, running a similar script to mirror the backups to the file server gives rise to the following error: rsync: writefd_unbuffered failed to write 4092 bytes: phase "send_file_entry" [sender]: Broken pipe (32) ERROR: module is read only rsync error: syntax or usage error (code 1) at main.c(555) rsync: connection unexpectedly closed (4 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(359) This is the script run on the backup: #!/bin/bash # This script is called daily from cron to mirror the overnight backups # to file_server # The full paths of the programs used in this script rsync=/usr/bin/rsync mount=/bin/mount umount=/bin/umount # Good rsync options for backups. rsync_opts="-av" # The name of the file containing the rsync connection password password="--password-file=/etc/.rs_pass" # Mirror the contents of /root/backup folder to file_server:/root/backup_server/backup. # Dump any output and error messages to /var/rsync/backup_server $rsync $rsync_opts $password /root/backup/ \ file_server::mirror > /var/rsync/backup_server The rsyncd.conf file on the file server: [rsync] path = /home use chroot = no max connections = 4 auth users = root hosts allow = backup_server secrets file = /etc/.rs_sec uid = root gid = root [mirror] path = /root/backup_server/backup use chroot = no max connections = 4 auth users = root hosts allow = backup_server secrets file = /etc/.rs_sec uid = root gid = root Let me know if you need more info Regards Clive -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-1-686 Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) Versions of packages rsync depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libpopt01.7-5lib for parsing cmdline parameters -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]