![]() |
cp command - update flag question
my system is running cp version 5.97. i want to use it with the update flag to synchronize files and folders in another directory on the same system. however, i want to exclude particular files and/or folders when i execute the command. is this possible? if so, can someone please provide a working example?
thanks in advance |
Hi, welcome to LQ!
With plain cp: no With cp and scripting: yes, but cumbersome Use rsync instead. Despite its name it works quite well for local copies. Cheers, Tink |
For true two-way synchronization, unison is better than rsync. It's relatively easy to use and can be used both cli and through a gui frontend. And yes, it can be set up to exclude specific files and folders.
|
Quote:
can you please provide me with an rsync working example? |
| All times are GMT -5. The time now is 02:24 PM. |