command not working.. help

Kevin Korb kmk at sanitarium.net
Sun Jul 7 00:41:31 MDT 2013


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

- --delete and --files-from don't work together.

- --files-from is for specifying an exact list of what to copy.
Therefore there can't be anything to delete because there is nothing
it looks at other than the specified list.

Also, never ever use "dest/*"  Your shell will expand that to a list
of everything that matches "dest/*" and rsync will think you are
specifying a bunch of additional sources with the very last one being
the target.  Nothing good will happen.

On 07/07/13 02:33, Garvit Sharma wrote:
> Hello All,
> 
> *rsync -av --files-from=FILE --delete-before src/ dest/*
> 
> the above mentioned command not working. I want to delete extra
> files on the dest that are not on the source and transferring the
> selected files from FILE simultaneously. Please suggest me how to
> do that ??
> 
> -- Regards
> 
> Garvit Sharma Computer Science and Engineering UG Third year LNM
> IIT, Jaipur
> 
> /No Body is a Scholar by birth, its only hard work and strong 
> determination that makes him master./ / /
> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	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.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHZDZsACgkQVKC1jlbQAQdWMwCgpLMckRG+b7G7erCkpRI7gQcv
o8kAn376k4WSuBq/8cWzR0rfgP0doqNU
=hNwz
-----END PGP SIGNATURE-----


More information about the rsync mailing list