Skip to content
Advertisement

Tag: copy

Copy file only after all directories are copied

I have a folder A. It contains another folders data and opt, which contains many folders and files. And a complete.txt file, which denotes all files in data and opt are correct. I need to copy folder A completely. But the complete.txt file should copy only after all other files and folders are copied. Is there any linux command to

How to achieve a mirror copy in Linux?

I want to make two directories synchronized. I know there is a robocopy /MIR command in Windows that can achieve this. Ex: When there is a file updated or deleted, the backup directory can keep synchronization. I have tried in Linux through the rsync command like this: but when I delete a file under /usr/test and then run this command,

Advertisement