Hallo Leute,
weis jemand zufällig ob es die MÃ?glichkeit gibt ein Verzeichnis auf Server a zu packen dann per scp zu server b zu übertragen und dort zu entpacken ?!
Würde das in einem Rutsch gehen ?
Gruss
Daten gleichzeitig packen,auf anderen Server übertragen und entpacken
-
- Posts: 90
- Joined: 2005-08-07 14:27
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: Daten gleichzeitig packen,auf anderen Server übertragen und entpacken
Code: Select all
tar cvzf - /was/du backuppen/willst | ssh user@andererhost tar -C /da/wo/es/hin/soll xvzpf -
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Posts: 12
- Joined: 2006-03-09 16:52
Re: Daten gleichzeitig packen,auf anderen Server übertragen und entpacken
CaptainCrunch wrote:Code: Select all
tar cvzf - /was/du backuppen/willst | ssh user@andererhost tar -C /da/wo/es/hin/soll xvzpf -
Was hab ich den falsch gemacht? Bei mir kommt folgender Fehler:
tar: You must specify one of the `-Acdtrux' options
Try `tar --help' or `tar --usage' for more information.
-
- Project Manager
- Posts: 11183
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Daten gleichzeitig packen,auf anderen Server übertragen und entpacken
Code: Select all
cd /quelle && tar -cSp --atime-preserve --numeric-owner -f - . | ssh user@host "( cd /ziel && tar -xSp --atime-preserve --numeric-owner -f - )"
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 12
- Joined: 2006-03-09 16:52
Re: Daten gleichzeitig packen,auf anderen Server übertragen und entpacken
Joe User wrote:Code: Select all
cd /quelle && tar -cSp --atime-preserve --numeric-owner -f - . | ssh user@host "( cd /ziel && tar -xSp --atime-preserve --numeric-owner -f - )"
alles super--------DANKE! das funzt!!!