tar full directories and back up with rclone.
- This script improves the speed to regular rclone for backing up a directory, as a usual directory can contain many small files (talking about you, node_modules).
- To ensure that each individual tar archive can be extracted, without the need to download all of the archives, this script incrementally adds directories to a tar archive until a given size is reached. A txt file is given for each tar file about the folders in that tar file.
- Finally, the created tar files are uploaded to a given directory. The user can specify an upper bound on the number of version that are backed up. Each version is uploaded with its UNIX timestamp, and the oldest versions on the remote are deleted.