Skip to content

Commit

Permalink
doc: migration
Browse files Browse the repository at this point in the history
  • Loading branch information
redstreet committed Aug 24, 2023
1 parent 33fd012 commit 6a5b990
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,27 @@ downloads two files (if needed), and uploads two files (if needed, and on push o
- DropBox
- [Rclone crypt](https://rclone.org/crypt/)

### Repo migration

Good question. `git-remote-rclone-reds` is *not* backward compatible with existing remotes created by [datalad/git-remote-rclone](https://github.com/datalad/git-remote-rclone). Migrating a repo is required. But migrating a repo back and forth between `git-remote-rclone` and `git-remote-rclone-reds` is very easy. There is just one small one-time change needed to translate between these versions: instead of `repo.7z`, `git-remote-rclone-reds` uses `repo-SHA.tar.gz`. So in theory, you could unpack, repack, and rename, using the ~/gnu/git-remote-rclone/compute_sha.py that ships with `git-remote-rclone-reds`, and that works fine. But there's a much easier way via git:

```
# Upgrade to git-remote-rclone-reds
pip3 uninstall git-remote-rclone
pip3 install git-remote-rclone-reds
# Upgrade the repo.
git remote -v
origin rclone://cloud/old (fetch)
origin rclone://cloud/old (push)
git remote add new rclone://cloud/new
git push -u new main
# You can now verify rclone://cloud/new looks right, and then rename it to `origin`
```
This works for migrations in the opposite direction too.


## Acknowledgements

Expand Down

0 comments on commit 6a5b990

Please sign in to comment.