page for documenting rclone
Rclone should already be installed in BitCurator but if you are transferring content that you need to log in to access, you'll need to do some additional set up to connect to cloud storage service. This will have to be repeated for each cloud storage service and possibly reconnected if some time has passed between the last time you've used Rclone. Below lists the general set up process with sections for specific cloud storage providers used in practice so far. If there is a cloud storage provider you need to access that's not covered below, please contact the digital archivist.
This general setup will work with DropBox
Type "rclone config" and hit enter
Choose a national cloud region for OneDrive
Choose 1 for Microsoft Cloud Global
Type of connection, 1 for basic OneDrive Personal or Business, you will get your personal one drive account and anything shared with you. 2 sharepoint root will give you sharepoints that are open to you. 3 you can choose enter the site url
In general we use Rclone for transferring files. When possible we also use it to confirm the fixity of the files downloaded.
The command to copy files is fairly simple, you specify that you want to copy the files, enter their location, and then their destination. For instance:
rclone copy [name of remote as set up above]:[name_of_folder_or_file (if spaces in name, you can put quotation marks around this after the colon)] [/path/to/destination/folder, i.e. processing folder, etc.]
Here is an example:
rclone copy dropbox:"Robert Birgeneau INT" /media/sf_BCShared01/processing/2022_061acc
Some cloud providers have checksums stored in their system that you can extract and facilitate fixity checking. Some are unique to their system or some can be more standard types. Here is a general layout of the command to extract the checksums into a text file:
rclone hashsum [type of checksum] [remote source]:"folder_name or file" (same as when copying) --output-file /path/to/output/file.txt
Here is an example for dropbox:
rclone hashsum dropbox dropbox:"Robert Birgeneau INT" /media/sf_BCShared01/processing/2022_061acc/submissionDocumentation/dropbox_checksums.txt
Here is an example for OneDrive or SharePoint:
rclone hashsum quickxor onedrive:"Robert Birgeneau INT" /media/sf_BCShared01/processing/2022_061acc/submissionDocumentation/onedrive_checksums.txt
Here is an example for Google Drive, because you can reuse md5 checksums in Archivematica, we have named the checksum file in the convention that it will recognize:
rclone hashsum md5 googledrive:"Robert Birgeneau INT" /media/sf_BCShared01/processing/2022_061acc/submissionDocumentation/checksum.md5
In order to confirm fixity, there are number of options:
Confirm the using the checksums you extracted in the steps above:
rclone checksum [checksum type] /path/to/checksum/file.txt /path/to/local_directory/of/copied_file
Confirm without local checksums/those that rclone generates:
rclone check [remote name]:[source folder] /path/to/local_copy/of/source_folder