Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: linuxhelp on October 01, 2008, 05:32:09 AM
-
Hello,
i made a rsync between two sme-servers with sshd (port22)
command :
#rsync -avz /path/data/ ip-dest:/path/data
but if i have the same data at destination Server proftpd creates a new subdirectory
inside ip-dest:/path/data/data ?? why do rsync not overwrite it?
In this case i got double data-waste?
Same behavior with "Midnight Commander" ftp-upload = NO OVERWRITE always new Sub's created??
Is it only on CentOS? i made this rsync between Debian-VSFTPD-Engines without
problems.
I have googled but no result..
-
I use the following between 2 SME servers : works like charm for me :grin:
Server A (Pulling files from Server B )
Server B ( Source of Files been sent to Server A)
On Server A :
rsync -avz -e 'ssh -2 -p nnnnn -i /pub-private-key-file' root@xxx.xxx.xxx.xxx:/home/e-smith/files/ibays/ibayname1/html/ /home/e-smith/files/ibays/ibayname1/html
What i achieve here is that " /home/e-smith/files/ibays/ibayname1/html plus any sub-dirs underneath" are pulled into Server A
Check the man page and your code to make sure you have the trailing "/" in the correct place.
A trailing slash on the source changes this behavior to avoid creating an additional directory level at the des-
tination. You can think of a trailing / on a source as meaning "copy the contents of this directory" as opposed
to "copy the directory by name", but in both cases the attributes of the containing directory are transferred to
the containing directory on the destination. In other words, each of the following commands copies the files in
the same way, including their setting of the attributes of /dest/foo:
rsync -av /src/foo /dest
rsync -av /src/foo/ /dest/foo
-
Hello Warren
thank you for your post, in my case i always do a "rsync -av /src/foo/ ip:/dest/foo" and after
rsync (Backup-ibays) i found ../ibayname/html/html for example.
I will look forward why rsync is doing that, perhaps there must be first a rsync-backup
to a fresh made ibays without data that the incremental rsync-file is same at both engines
i post results here..
bye..
-
I set mine up a long time ago, but found this hidden in notes :
http://www.fredshack.com/docs/rsync.html (http://www.fredshack.com/docs/rsync.html)
-
Hello,
i made a rsync between two sme-servers with sshd (port22)
command :
#rsync -avz /path/data/ ip-dest:/path/data
but if i have the same data at destination Server proftpd creates a new subdirectory
inside ip-dest:/path/data/data ?? why do rsync not overwrite it?
What has proftpd to do with it? You are running an rsync command, right?