Test rsync with dry runs before executing to avoid losing data


rsync

With the power of rsync, it’s quite easy to accidentally erase, overwrite, or otherwise destroy your data with one slip of the keys.

Before you even think of attempting anything complicated like deleting extraneous files on the destination, handling file systems that don’t support permissions such as FAT32 with -lrt, do a dry run barrel roll.

dry run

If you’re doing something other than non-trivial copies or using features of rsync that you’ve never used before, add the -n switch to whatever you’re doing to make it a dry run.

Even if you supply the right switches, you might leave off a slash or put one where it doesn’t belong. Better safe than sorry, especially when you’re about to churn through terabytes of data at a time.

oops…


Posted on July 28th, by admica in apps, howto, storage.

2 thoughts on “Test rsync with dry runs before executing to avoid losing data

  1. Hi
    Could you tell me what plugin you’ve used to show the awesome format of the codes?
    Thx very much… :-)