zebragugl.blogg.se

Yasu app mac
Yasu app mac















my/source/ -e switch allows the transfer over ssh. Updating a remote webserver is much the same, except now, you probably want to use compression and need to specify the ssh credentails.

#YASU APP MAC FULL#

I use this solution instead for speed and the fact that I do not have the space for incremental backups (copying an almost full 3TB drive to another 3TB drive). Use of the duplicity tool in Linux is usually better as it offers incremental backups and encryption whereas this is more like a single copy. Rsync is generally not the "best" backup solution. for virtual machines) are tranferred efficiently (don't turn into non-sparse "disk-eaters") -sparse - ensures that sparse image files (e.g.-group - ensures the that group user of the file is kept (not the permission level for the group).-owner - ensures the that owner user of the file is kept (not the permission level for the owner).

yasu app mac

I highly recommend you enable it the first time you run the command after writing it. This is why it is commented out, but left in so that you can easily enable it.

  • -dry-run - will result in rsync not actually performing any deletions or transfers but telling you what it will do.
  • -progress2 - results in showing the overall progress of the entire transfer, not just of the single file that is being copied.
  • Without this, symlinks would just be skipped, and only those symliks that pointed outside of our rsync path would be copied across.
  • -links - copies symlinks as symlinks (except unsafe ones are converted to their representative files because of the earlier copy-unsafe-links option).
  • Symlinks are considered unsafe if they have too many "." that they go out of scope of the copy, or if they start with "/" whcih means they use an absolute path rather than a relative one.
  • -copy-unsafe-links - results in symlinks that are considered unsafe to have the file it relates to copied across rather than the symlink.
  • -delete-before - should be the default behaviour and is thus unnecessary, but allows you to be certain that deletions will happen before a transfer.
  • -force - allows the deletion of a non empty directory in order to be replaced by an empty directory.
  • -times - is fairly important if you are going to be running this script over and over again, as it will keep the times between the two files in sync (there wont be a difference which may cause a transfer next time).
  • -delete - ensures that any files in the remote directory that aren't in the soruce directory are deleted.
  • -human-readable - file sizes are output in human readable format.
  • on the end of both the source and dest, to keep the two specified folders in sync. If you do not end with a /, then the folder specified will be destination path (one more nested layer).

    yasu app mac yasu app mac

    If the source ends in / like in the example above, then the content of that folder is placed in the destination specified. You may need to convert absolute symlinks to be relative in order to prevent making unnecessary duplicates on the destination. That switch lets you know what it is going to do before it goes ahead which has saved me many times. You will need to remove the -dry-run line in order for it to actually transfer/delete files. If you don't like it, you may want to use How-To Geek's alternative. Please note that having the end "/" is actually fairly important when specifying the source and destination folders. Related Postsīelow is the command I use for taking a 'backup' of my 3TB Drive. This is because it will only transfer the data that has changed, and it can even compress the data before sending it, which is great if bandwidth is an issue (which it usually is). Rsync is a great tool for making file backups/copies or for transferring files to a remote server.















    Yasu app mac