Skip to content

Sync contents of a directory to any other directory, as efficiently as possible. This was particularly made to create a "live" backup of photographs and their metadata files to network disks like pCloud, Adobe Cloud, OneDrive or Google Drive.

License

Notifications You must be signed in to change notification settings

oldabl/sync-disk-to-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These scripts allow to sync or create backups

Make sure that the disk you're copying onto has enough space, or that your internet upload speed is fast enough for uploading as the program copies.

Live sync

Originally made to sync a directory between an external volume (Elements1TB) to an online disk (in this default case pCloud), its bandwith is limited to make sure pCloud has time to upload files while they are being copied into it.

Prerequisites

Need to have rsync installed.

Parameters

The parameters are set directly inside the script:

  • dirToSync: source directory to synchronise
  • whereToSync: destination directory where to synchronise the source directory

Details

It replicates exactly the dirToSync directory, meaning:

  • the first run can take hours because it needs to copy the whole directory
  • subsequent runs will only do what's needed to make sure the destination directory is up-to-date with the source
  • if a file is deleted in the source directory, the script will delete it in the destination directory
  • if a file is updated in the source directory, the script will copy the newly updated file into the destination directory
  • if a file is updated in the destination directory, the script won't replace it with the file in the source directory

Create backup

It creates a snapshot of a directory and stores it in another directory.

Prerequisites

Need to have zip installed.

Parameters

The parameters are set directly inside the script:

  • dirToBackup: source directory to archive as backup
  • whereToStoreBackup: destination directory where to store the backup archive

Details

It creates a zip archive of the dirToBackup directory and stores it in the whereToStoreBackup directory.

About

Sync contents of a directory to any other directory, as efficiently as possible. This was particularly made to create a "live" backup of photographs and their metadata files to network disks like pCloud, Adobe Cloud, OneDrive or Google Drive.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published