How can the --backup-dir be set to remote machine?

Kevin Korb kmk at sanitarium.net
Wed Feb 3 06:16:38 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The backup dir is relative to the target dir so if the target is
remote so is the backup dir.

On 02/03/2016 12:11 AM, jupiter wrote:
> Hi,
> 
> I am running rsync backup on Centos 6, the following command does
> not seem work, the /backup/fll_copy was fine, but the
> /backup/Wednesday in the remote machine was not created even I
> changed the source contents several times.
> 
> 
> rsync -e "ssh -q -o StrictHostKeyChecking=no" --backup 
> --backup-dir=username at ipaddress:/backup/$(date +%A) -av $SRC 
> username at ipaddress:/backup/full_copy
> 
> Appreciate what I could be missing here?
> 
> Thank you.
> 
> Kind regards,
> 
> - j
> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
	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.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlaxm0YACgkQVKC1jlbQAQeggACg3A43tzbL1sI+HwAT5PrdjZMe
WPAAn3LMnaDtu77RP1+R4S64EaJdIc/z
=QqZq
-----END PGP SIGNATURE-----



More information about the rsync mailing list