
rsync:ai:a30ef
If directory not empty rsync
$ rsync -r --delete source_${directory} destination_directory
try on your machine
This command will sync the contents of source_directory to destination_directory, deleting any extra files in destination_directory that are not in source_directory.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- If directory not empty rsync?