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/07/28 10:21] – 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 110: Ligne 109:
 ~~~ ~~~
  
 +
 +## Syncho à la rsync - pipe - ssh
 +
 +~~~bash
 +cd /mnt/src
 +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.1785226872.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki