I have realized that a dvc repository cannot be backed up as I would any working directory, since links cannot be backed up (except by archiving).
I am using symlinks with
Apparently, the way to backup a dvc repository is to set up another dvc repository for this purpose and transfer all changes there.
I have set up a backup dvc repository on a flash drive, as follows:
cd /path/to/mount/point/ mkdir backup cd backup git init dvc init dvc remote add -d mainremote /path/to/my/dvc/repository git add -A git commit git clone --no-hardlinks /path/to/my/dvc/repository dvc pull
What happened, was that git clone did not copy any symlinks and
dvc pull reported:
WARNING: Some of the cache files do not exist neither locally nor on remote. Missing cache files:
And here it listed all my data files and directories, some of them twice.
After that a few more error messages followed, saying that the cache files could not be downloaded since they do not exist on the flash repository.