Outils pour utilisateurs

Outils du site


tech:notes_rsync

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_rsync [2025/06/24 15:18] Jean-Baptistetech:notes_rsync [2025/10/17 16:26] (Version actuelle) Jean-Baptiste
Ligne 80: Ligne 80:
 ~~~bash ~~~bash
 rsync -ax /mnt/usb_disk/ /mnt/usb_disk2/ rsync -ax /mnt/usb_disk/ /mnt/usb_disk2/
 +~~~
 +
 +
 +### Utilisation de l'option --files-from
 +
 +~~~bash
 +rsync -anv --files-from=push.lst / /tmp/plop/
 ~~~ ~~~
  
Ligne 86: Ligne 93:
  
 ~~~bash ~~~bash
-rsync --files-from=<(find ~/DATA/ -type f -name '*.txt' -printf "%P\n") ~/DATA/ ~/DATA2/+rsync --files-from=<(find ~/DATA/ -type f -name '*.txt' -printf "%P\n") ~/DATA/ ~/DATA2/ 
 +# find ~/DATA/ -name '*.txt' -printf %P\\0 | rsync --files-from=- --from0 ~/DATA/ ~/DATA2/ 
 + 
 +cd ~/DATA/ 
 +find . -type f -name '*.txt' -exec rsync -av -R {} ~/DATA2/ \;
 ~~~ ~~~
 +
 +
  
  
Ligne 164: Ligne 177:
 ~~~bash ~~~bash
 /usr/bin/ionice -c2 -n7 rsync -axvn --bwlimit=20480 /home/jean/ backup1:/data/bck1/home/jean/ /usr/bin/ionice -c2 -n7 rsync -axvn --bwlimit=20480 /home/jean/ backup1:/data/bck1/home/jean/
 +
 +# systemd-run -p IOWeight=10 rsync -axvn --bwlimit=20480 /home/jean/ backup1:/data/bck1/home/jean/
 ~~~ ~~~
  
tech/notes_rsync.1750771113.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki