How to set absolute path for rsync?
Joe Qiao
qlnaaa at gmail.com
Tue Aug 15 23:19:26 UTC 2017
Dear experts,
I would like get your help for the issue with --partial-dir=*absolute path.*
I’m trying to use rsync to send big file to server and config
--partial-dir=*absolute
path* since I want to store temp partial file in /tmp/ directory and keep
the destination folder clear.
My server is joe28, client is joe27. And here is the config on server.
root at joe28:~# cat /etc/rsyncd.conf
# Global settings
address = 10.148.34.28
numeric ids = yes
uid = 0
read only = no
reverse lookup = no
dont compress = *
timeout = 10
[JOE]
path = /home/joe/rsync
comment = Joe's rsync test
Sending big file from joe27 to joe28:
root at joe27:~# ls -l /home/joe/rsync/flash_image
-rw-r--r-- 1 root root 766028824 Aug 15 15:23 /home/joe/rsync/flash_image
root at joe27:~# rsync -a --delete --delay-updates --no-relative
--partial-dir=/tmp /home/joe/rsync/ rsync://10.148.34.28:873/JOE -P
building file list ...
2 files to consider
./
flash_image
766028824 100% 108.69MB/s 0:00:06 (xfer#1, to-check=0/2)
sent 766122429 bytes received 30 bytes 61289796.72 bytes/sec
total size is 766028824 speedup is 1.00
However, I still see the partial file in the local directory, but not in
/tmp which I configured.
root at joe28:~# watch --interval=1 ls -al /home/joe/rsync/ /tmp/flash*
Every 1.0s: ls -al /home/joe/rsync/ /tmp/flash*
Tue Aug 15 15:35:55 2017
ls: cannot access /tmp/flash*: No such file or directory
/home/joe/rsync/:
total 77064
drwxr-xr-x 2 root root 4096 Aug 15 15:35 .
drwxr-xr-x 32 joe joe 4096 Aug 15 15:01 ..
-rw------- 1 root nogroup 78905344 Aug 15 15:35 .flash_image.xlIBqo
And finally I saw the “tmp” folder is created on server. That is not my
expected.
Every 1.0s: ls -al /home/joe/rsync/ /tmp/flash*
Tue Aug 15 15:36:05 2017
ls: cannot access /tmp/flash*: No such file or directory
/home/joe/rsync/:
total 748092
drwxr-xr-x 3 root root 4096 Aug 15 15:14 .
drwxr-xr-x 32 joe joe 4096 Aug 15 15:01 ..
-rw-r--r-- 1 root root 766028824 Aug 15 15:23 flash_image
drwx------ 2 root nogroup 4096 Aug 15 15:36 tmp
Would you please give some suggestions? Appreciate the help!
BTW. I tried with --temp-dir but same result. Rsync version is 3.1.2.
Regards,
-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20170815/2410e575/attachment.html>
More information about the rsync
mailing list