OVH Cloud OVH Cloud

Sauvegarde Réseau

2 réponses
Avatar
stena83
Bonjour,

J'ai 2 PC (PC1 et PC2),

Je souhaite sauvegarder la totalité de PC1 sur PC2 en ligne de commande.

Comment peut t-on associé un

tar -cvz -f /tmp/sauvegarde /

et un

ssh user@pc2

Comment puis-je créer l'archive directement sur pc2?

Cordialement


2 réponses

Avatar
Gilles MISSONNIER
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.

---1480404480-990860008-1144160471=:16605
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

apt-get install rsync

extrait du man :

rsync -avz foo:src/bar /data/tmp

This would recursively transfer all files from the directory src/bar on
the machine foo into the /data/tmp/bar directory on the local machine.
The files are transferred in "archive" mode, which ensures that
symbolic links, devices, attributes, permissions, ownerships, etc.
are preserved in the transfer. Additionally, compression will be
used to reduce the size of data portions of the transfer.


On Tue, 4 Apr 2006, wrote:

Bonjour,

J'ai 2 PC (PC1 et PC2),

Je souhaite sauvegarder la totalité de PC1 sur PC2 en ligne de commande .

Comment peut t-on associé un

tar -cvz -f /tmp/sauvegarde /

et un

ssh

Comment puis-je créer l'archive directement sur pc2?

Cordialement






=_==_==_==_==_==_=
=¯==¯==¯==¯==¯==¯=
Gilles Missonnier
IAP -
01 44 32 81 36
---1480404480-990860008-1144160471=:16605--


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Bruno Muller
Bonjour,

Le mardi 04 avril 2006 à 16:07 +0200, a écrit :
J'ai 2 PC (PC1 et PC2),
Je souhaite sauvegarder la totalité de PC1 sur PC2 en ligne de commande .
Comment peut t-on associé un

tar -cvz -f /tmp/sauvegarde /

et un

ssh

Comment puis-je créer l'archive directement sur pc2?



# tar cvfz - / | ssh "cat - > /tmp/sauvegarde.tgz"

Bruno

--
TRANCHE DE VIE
M : J'aime bien lire aux chiottes, mais ce que je préfère... c'est chie r
chez le marchand de journaux...