How to set absolute path for rsync?
Kevin Korb
kmk at sanitarium.net
Wed Aug 16 00:14:41 UTC 2017
With rsyncd you can't. You would have to switch to rsync over ssh...
rsync -a --delete --delay-updates --partial-dir=/tmp -P /home/joe/rsync/
10.148.34.28:/home/joe/rsync/
Also, when you use --partial-dir you probably want to also use --temp-dir.
On 08/15/2017 07:19 PM, Joe Qiao via rsync wrote:
> 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 <http://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
>
>
>
--
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb Phone: (407) 252-6853
Systems Administrator Internet:
FutureQuest, Inc. Kevin at FutureQuest.net (work)
Orlando, Florida kmk at sanitarium.net (personal)
Web page: http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 224 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/rsync/attachments/20170815/5b9e17a0/signature.sig>
More information about the rsync
mailing list