WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Linux, UNIX, Open Source

Linux, UNIX, Open Source Rat & Tat bei Problemen und Fragen rund um GNU/Linux, BSD und sonstige UNIXe

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 20.03.2004, 13:26   #1
Phlow
Veteran
 
Registriert seit: 22.08.2000
Beiträge: 282


Phlow eine Nachricht über ICQ schicken
Standard cp / exclude dirs

Hi

Ich möchte gerne rekursiv einen ganzen Ordner inklusive Subordner kopieren, dabei aber bestimmte Verzeichnisse nicht mitkopieren.

bsp:
/usr/local komplett ohne /usr/local/home

wie geh ich das denn am besten an?
PS: es geht hier nicht nur um ein Verzeichnis das nicht mitkopiert werden soll sondern um mehrere und um einen recht komplexen Tree.

Any Ideas?

thx Phlow
Phlow ist offline   Mit Zitat antworten
Alt 21.03.2004, 18:06   #2
Phlow
Veteran
 
Registriert seit: 22.08.2000
Beiträge: 282


Phlow eine Nachricht über ICQ schicken
Standard

keiner eine Idee ? das hab ich hier ja noch gar nie erlebt
Phlow ist offline   Mit Zitat antworten
Alt 21.03.2004, 18:22   #3
valo
Inventar
 
Registriert seit: 15.11.2000
Alter: 43
Beiträge: 7.684


Standard

rsync

Zitat:
DESCRIPTION
rsync is a program that behaves in much the same way that rcp does, but has many more options and uses the rsync remote-update protocol to greatly speed up file transfers when the destination file already exists.

The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network link, using an efficient checksum-search algorithm described in the technical report that accompanies this package.

Some of the additional features of rsync are:

o support for copying links, devices, owners, groups and permissions

o exclude and exclude-from options similar to GNU tar

o a CVS exclude mode for ignoring the same files that CVS would ignore

o can use any transparent remote shell, including rsh or ssh

o does not require root privileges

o pipelining of file transfers to minimize latency costs

o support for anonymous or authenticated rsync servers (ideal for mirroring)

GENERAL
There are six different ways of using rsync. They are:

o for copying local files. This is invoked when neither source nor destination path contains a : separator

o for copying from the local machine to a remote machine using a remote shell program as the transport (such as rsh or ssh). This
is invoked when the destination path contains a single : separator.

o for copying from a remote machine to the local machine using a remote shell program. This is invoked when the source contains a : separator.

o for copying from a remote rsync server to the local machine. This is invoked when the source path contains a :: separator or a rsync:// URL.

o for copying from the local machine to a remote rsync server. This is invoked when the destination path contains a :: separator.

o for listing files on a remote machine. This is done the same way as rsync transfers except that you leave off the local destination.

Note that in all cases (other than listing) at least one of the source and destination paths must be local.
____________________________________
Yeah, yo mama dresses you funny and you need a mouse to delete files.
Jabber-ID: valo [at] cargal \'.\' org

Infected Mushroom and Barri Saharof - Live in Eilat Desert Israel 24-10-2002
A*S*Y*S - SSL-Pickup 21-10-2002
Dj Tiesto - Forbidden Paradise 8/Mystic Swamp
valo ist offline   Mit Zitat antworten
Alt 21.03.2004, 18:25   #4
SNo0py
Inventar
 
Registriert seit: 08.02.2000
Beiträge: 1.696


Standard

man rsync
____________________________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
SNo0py ist offline   Mit Zitat antworten
Alt 21.03.2004, 19:38   #5
Phlow
Veteran
 
Registriert seit: 22.08.2000
Beiträge: 282


Phlow eine Nachricht über ICQ schicken
Standard

super, danke ... das rsync für locale kopien geeignet ist, wer hätte das gedacht, man lernt nie aus

thx
Phlow ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 23:32 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag