Suggestions for basic rsync configuration
pete.heiss at gmail.com
Fri Mar 14 13:29:38 GMT 2008
Thanks for your response, I think that I am on my way of getting stuff
configured here. I still have a couple of questions though. I am also using
linux with rsync!!! I want to clear up the usage of the following command:
rsync --progress -zav -e ssh /random/file-or-directory
Does that command mean that I connecting to the remote server and coping the
desired folder and files, or is it copying file from
"/home/suse/Desktop/rsync_backups/" to the remote server at
"<remote-server-ip-address>:/random/file-or-directory". And what happens
when I switch it around like the following:
rsync --progress -zav -e ssh
I have set up the rysnc daemon successfully on the remote server (I think),
which prompts for the password when I connect. I get the following error
when I run rsync daemon:
# rsync daemon
rsync: link_stat "/directory-path/daemon" failed: No such file or directory
rsync error: some files could not be transferred (code 23) at main.c(977)
Is there anything that I still have to configure for the rsync daemon? I
also get the following error when I run the following command:
# rsync --progress -zav -e ssh /random/file-or-directory
building file list ...
1 file to consider
ERROR: cannot overwrite non-directory with a directory
rsync error: errors selecting input/output files, dirs (code 3) at
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(453)
Is this an error from a lack of rights to the files and folders that I want
to copy? I might have misconfigured my config, I can post it if you want.
Stuart Halliday wrote:
> Whilst it is possible to write a script to mount FTP and copy the files
> across. This isn't what is usually done with Rsync.
> Rsync can be a replacement for FTP client.
> So it collects a list of altered files between two directories and puts
> these files into a remote directory. No FTP required.
> All you need to do is open up a port on your server to the Internet,
> install Rsync as a server(daemon) on one end and then run Rsync on the
> source whenever you need to do the backup.
> The cute thing is that Rsync don't care what platform the source or server
> is or whether or not it's across a LAN or WAN.
> Here is a batch line I typically use on Windows for backing up a directory
> across the Internet.
> rsync -zav --delete --recursive '/cygdrive/c/sourcedirectory/'
> username at mydomain.dom::backupdirectory/
> This syncs the source to the backup directory. ie Rsync assumes the source
> is the 'master'.
> Once you've got Rsync working, you can then add a SSH layer so the traffic
> is encrypted.
> I'd advise getting the basic daemon working first, then on the client PC,
> issue a Rsync command to list the contents of the remote folder.
> Once you've got that listing working you know things like firewalls, port
> forwarding of routers is working. :-)
> Rsync by default using port 873. But it's easy to change this. Just ensure
> you do it with the daemon and client. ;-)
> To list the public remote directories.
> Rsync domain.dom::
> Listing the contents of a directory set up in the daemon confg file is
> done by:
> Rsync domain.dom::backup
> Once you've got the basics, you can then add username and password
> protection in the confg file.
> Performing a list of a directory with a username is done like this:
> Rsync username at domain.dom::backup
> if a password is required, you're prompted for it.
> If you want the password auto-inserted, then you set a environmental
> In Windows this is added to the batch file of the client rsync.
> SET RSYNC_PASSWORD=mypassword
> A basic daemon conf.cfg file is something like this:
> log file = rsyncd.log
> pid file = rsyncd.pid
> use chroot=false
> charset = utf-8
> strict modes = false
> secrets file =/cygdrive/c/cwrsync/passwordfile
> comment=rsync directory
> path = /cygdrive/c/mybackup/
> read only = false
> transfer logging = yes
> #auth users=username
> password file is a list of users and passwords "username:password" on a
> single line.
> Stuart Halliday
> -----Original Message-----
> From: Geofoxer <pete.heiss at gmail.com>
> To: rsync at lists.samba.org
> Date: Thu, 13 Mar 2008 05:39:40 -0700 (PDT)
> Subject: Suggestions for basic rsync configuration
>> I am very new to rsync and am wanting to have it back up more than 4
>> linux servers via ftp. I want to write a script that will open up a ftp
>> connection using "ftp://username:email@example.com" with a
>> then mount the drive containing the backups, copy the data that is new,
>> unmount the drive, close the connection and move onto the next server
>> every server is successfully backed up to a external drive on my linux
>> machine which is on my local network. I know that I have to use ssh
>> with the
>> connection to the servers for backup, but where to start is where I am
>> right now. Here are a couple of noobish questions:
>> 1. Do I have to write my own file from scratch and hope it works?
>> 2. How should I start to write my file in order to have it correlate
>> backing up multiple servers (syntax, switches, and so on)?
>> If anyone has any advise on how I should start writing my config file,
>> please let me know if you have any suggestions.
>> Computers are like air conditioners. They both dont work, if you open
>> View this message in context:
>> Sent from the Samba - rsync mailing list archive at Nabble.com.
>> To unsubscribe or change options:
>> Before posting, read:
> This email is the property of ECS Technology Ltd.
> This company is registered in Scotland with company number 212513.
> VAT registered GB 761 7456 12
> To unsubscribe or change options:
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Computers are like air conditioners. They both dont work, if you open
View this message in context: http://www.nabble.com/Suggestions-for-basic-rsync-configuration-tp16025015p16048121.html
Sent from the Samba - rsync mailing list archive at Nabble.com.
More information about the rsync