Useful commands: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Wulf (Diskussion | Beiträge) Die Seite wurde neu angelegt: „Copying/Cloning all data from one folder to another: rsync -axHAWXS --numeric-ids --info=progress2 /srv/data_old/ /srv/data“ |
Wulf (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
Copying/Cloning all data from one folder to another: | Copying/Cloning all data from one folder to another: | ||
<syntaxhighlight lang="bash">rsync -axHAWXS --numeric-ids --info=progress2 /srv/data_old/ /srv/data</syntaxhighlight> | |||
Copying a file keeping the existing file attributes (owner, timestamp, etc.) | |||
<syntaxhighlight lang="bash">cp -r --preserve=all sourcefile targetfile</syntaxhighlight> | |||
Aktuelle Version vom 22. Mai 2018, 16:41 Uhr
Copying/Cloning all data from one folder to another:
rsync -axHAWXS --numeric-ids --info=progress2 /srv/data_old/ /srv/data
Copying a file keeping the existing file attributes (owner, timestamp, etc.)
cp -r --preserve=all sourcefile targetfile