Skip to main content
Used long options for people to get a more immediate understanding of the options being used
Source Link

rsync -va-verbose -n-archive --dry-run /oldisk/a/ /newdisk/a/

The --dry-run (or -n) will do a dry run, showing you what it would do without actually doing anything.

If it looks ok, run the rsync without the -n option.

This will be a copy, not a move, which isn't quite what you're doing, but is safer. The --archive (or -a) ensures all the ownership and timestamps metadata is preserved (which a regular copy would not).

rsync -va -n /oldisk/a/ /newdisk/a/

The -n will do a dry run, showing you what it would do without actually doing anything.

If it looks ok, run the rsync without the -n option.

This will be a copy, not a move, which isn't quite what you're doing, but is safer.

rsync --verbose --archive --dry-run /oldisk/a/ /newdisk/a/

The --dry-run (or -n) will do a dry run, showing you what it would do without actually doing anything.

If it looks ok, run the rsync without the -n option.

This will be a copy, not a move, which isn't quite what you're doing, but is safer. The --archive (or -a) ensures all the ownership and timestamps metadata is preserved (which a regular copy would not).

rsync a/ will copy the directory *content*, so it should go into the directory image directly, not its parent.
Source Link
vonbrand
  • 18.6k
  • 2
  • 40
  • 63

rsync -varva -n /oldisk/a/ /newdisk/a/

The -n will do a dry run, showing you what it would do without actually doing anything.

If it looks ok, run the rsync without the -n option.

This will be a copy, not a move, which isn't quite what you're doing, but is safer.

rsync -var -n /oldisk/a/ /newdisk/a/

The -n will do a dry run, showing you what it would do without actually doing anything.

If it looks ok, run the rsync without the -n option.

This will be a copy, not a move, which isn't quite what you're doing, but is safer.

rsync -va -n /oldisk/a/ /newdisk/a/

The -n will do a dry run, showing you what it would do without actually doing anything.

If it looks ok, run the rsync without the -n option.

This will be a copy, not a move, which isn't quite what you're doing, but is safer.

rsync a/ will copy the directory *content*, so it should go into the directory image directly, not its parent.
Source Link

rsync -v -a -rvar -n /oldisk/a/ /newdisk/a/

The -n will do a dry run, showing you what it would do without actually doing anything.

If it looks ok, run the rsync without the -n option.

This will be a copy, not a move, which isn't quite what you're doing, but is safer.

rsync -v -a -r -n /oldisk/a/ /newdisk/

The -n will do a dry run, showing you what it would do without actually doing anything.

If it looks ok, run the rsync without the -n option.

This will be a copy, not a move, which isn't quite what you're doing, but is safer.

rsync -var -n /oldisk/a/ /newdisk/a/

The -n will do a dry run, showing you what it would do without actually doing anything.

If it looks ok, run the rsync without the -n option.

This will be a copy, not a move, which isn't quite what you're doing, but is safer.

Source Link
cjc
  • 2.8k
  • 22
  • 10
Loading