Adding rsync tutorial
This commit is contained in:
parent
e555f6e1f1
commit
869f25bb5e
|
@ -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
|
||||
|
Loading…
Reference in New Issue