![]() Replace /new_directory/ with the destination.Replace the my_file.txt file in the working directory.The –a option means all, and is included with rsync commands – this preserves subdirectories, symbolic links, and other metadata.To copy a single file, enter the following into a terminal: rsync –a my_file.txt /new_directory/my_file_backup.txt ![]() Usage is similar to cp, but there are a few key differences to note. The rsync command in Linux is used to synchronize or transfer data between two locations. –R stands for recursive, which means “everything in that location.” This would copy all the files, as well as all the directories, to the / new_directory folder. –u update: copy only if source is newer than destination.–R recursive: copies all files and subfolders in a directory.–i interactive: prompts for confirmation, highly advised. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |