start rsync article
This commit is contained in:
parent
b8f436039a
commit
e64ce6280a
12
.gitignore
vendored
Normal file
12
.gitignore
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
# Compiled
|
||||
*.elc
|
||||
|
||||
# Packaging
|
||||
.cask
|
||||
|
||||
# Backup files
|
||||
*~
|
||||
|
||||
# Undo-tree save-files
|
||||
*.~undo-tree
|
||||
|
60
blog/src/backup_strategy.org
Normal file
60
blog/src/backup_strategy.org
Normal file
@ -0,0 +1,60 @@
|
||||
|
||||
--dry-run does not produce the same output file. Use: remove
|
||||
--info=progress 2 and use --itemize-changes
|
||||
#+begin_src
|
||||
rsync -e ssh user@archimede.local:/media/asparagi/ /media/asparagi \
|
||||
--info=progress2 --log-file ~/rsync.log \
|
||||
--archive --verbose --human-readable --links --update --delete \
|
||||
--dry-run # warrant against copy-paste
|
||||
#+end_src
|
||||
NOTA GLI SLASH
|
||||
|
||||
|
||||
#+begin_verbatim
|
||||
YXcstpoguax path/to/file
|
||||
|||||||||||
|
||||
||||||||||╰- x: The extended attribute information changed
|
||||
|||||||||╰-- a: The ACL information changed
|
||||
||||||||╰--- u: The u slot is reserved for future use
|
||||
|||||||╰---- g: Group is different
|
||||
||||||╰----- o: Owner is different
|
||||
|||||╰------ p: Permission are different
|
||||
||||╰------- t: Modification time is different
|
||||
|||╰-------- s: Size is different
|
||||
||╰--------- c: Different checksum (for regular files), or
|
||||
|| changed value (for symlinks, devices, and special files)
|
||||
|╰---------- the file type:
|
||||
| f: for a file,
|
||||
| d: for a directory,
|
||||
| L: for a symlink,
|
||||
| D: for a device,
|
||||
| S: for a special file (e.g. named sockets and fifos)
|
||||
╰----------- the type of update being done::
|
||||
<: file is being transferred to the remote host (sent)
|
||||
>: file is being transferred to the local host (received)
|
||||
c: local change/creation for the item, such as:
|
||||
- the creation of a directory
|
||||
- the changing of a symlink,
|
||||
- etc.
|
||||
h: the item is a hard link to another item (requires
|
||||
--hard-links).
|
||||
.: the item is not being updated (though it might have
|
||||
attributes that are being modified)
|
||||
*: means that the rest of the itemized-output area contains
|
||||
a message (e.g. "deleting")
|
||||
#+end_verbatim
|
||||
#+begin_verbatim
|
||||
>f+++++++++ some/dir/new-file.txt
|
||||
.f....og..x some/dir/existing-file-with-changed-owner-and-group.txt
|
||||
.f........x some/dir/existing-file-with-changed-unnamed-attribute.txt
|
||||
>f...p....x some/dir/existing-file-with-changed-permissions.txt
|
||||
>f..t..g..x some/dir/existing-file-with-changed-time-and-group.txt
|
||||
>f.s......x some/dir/existing-file-with-changed-size.txt
|
||||
>f.st.....x some/dir/existing-file-with-changed-size-and-time-stamp.txt
|
||||
cd+++++++++ some/dir/new-directory/
|
||||
.d....og... some/dir/existing-directory-with-changed-owner-and-group/
|
||||
.d..t...... some/dir/existing-directory-with-different-time-stamp/
|
||||
#+end_verbatim
|
||||
|
||||
mergerfs /mnt/a1/:/mnt/b1/:/mnt/d1/:/mnt/e1/ /media/asparagi -o
|
||||
threads=6,allow_other,use_ino,cache.files=off,dropcacheonclose=true,category.create=mfs,moveonenospc=true,minfreespace=20G,fsname=mergerfsPool,nonempty
|
Loading…
Reference in New Issue
Block a user