Adding rsync tutorial

This commit is contained in:
Jose 2023-02-05 19:12:59 -03:00
parent e555f6e1f1
commit 869f25bb5e
1 changed files with 22 additions and 0 deletions

22
tutorial/rsync.org Normal file
View File

@ -0,0 +1,22 @@
#+options: toc:nil num:nil author:nil
** Copy multiple files, directories or disk using "rsync"
The command accepts arguments:
- "-r" recursive
- "-v" verbose
- "-a" archive (keeps info about files)
First use the source, then the destination
#+begin_src sh
rsync -rav /home/user/Documents /run/media/user/disk/backup/
#+end_src
~rsync~ can be also used with selective copyng based on file type
#+begin_src sh
rsync /home/user/Desktop/*.jpg /home/user/Desktop/backupdata/
#+end_src