Outils pour utilisateurs

Outils du site


tech:shell_gnu_tar_-_commande_tar

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:shell_gnu_tar_-_commande_tar [2026/10/30 17:39] – Jean-Baptistetech:shell_gnu_tar_-_commande_tar [2026/11/03 10:15] (Version actuelle) – Jean-Baptiste
Ligne 66: Ligne 66:
  
 Créer un tarball sans arborescence hiérarchique Créer un tarball sans arborescence hiérarchique
- 
 ~~~ ~~~
 $ tar czvf pushlogs.tar.gz --transform='s,^.*/,,' ./12/scs/data/.pushlogs.env ./common/pcc/scripts/pushlogs.sh $ tar czvf pushlogs.tar.gz --transform='s,^.*/,,' ./12/scs/data/.pushlogs.env ./common/pcc/scripts/pushlogs.sh
Ligne 111: Ligne 110:
  
  
-## Syncho à la rsync+## Syncho à la rsync - pipe - ssh
  
 ~~~bash ~~~bash
 cd /mnt/src cd /mnt/src
 tar cf - . | tar xvf - -C /mnt/dest tar cf - . | tar xvf - -C /mnt/dest
 +
 +tar -C /src/dir -jcf - ./ | ssh user@server 'tar -C /dest/dir -jxf -'
 ~~~ ~~~
  
tech/shell_gnu_tar_-_commande_tar.1793378347.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki