This shows you the differences between two versions of the page.
tech:file_transfer [2021/10/02 16:42] theia Move file transfer from 'tips' to 'tech' |
tech:file_transfer [2021/10/08 21:37] (current) theia |
||
---|---|---|---|
Line 9: | Line 9: | ||
* Host: ''remarkable'' | * Host: ''remarkable'' | ||
* Username: ''root'' | * Username: ''root'' | ||
- | * Password: ''enter-your-password'' | + | * Password: ''your-password'' |
* Port: ''22'' | * Port: ''22'' | ||
- | ==== File Transfer with SCP ==== | + | ==== File Transfer via SCP ==== |
To transfer files with a command line interface (CLI), open a terminal and type a command with this syntax | To transfer files with a command line interface (CLI), open a terminal and type a command with this syntax | ||
Line 19: | Line 19: | ||
scp <full_path_to_source_file> <full_path_to_destination> | scp <full_path_to_source_file> <full_path_to_destination> | ||
</code> | </code> | ||
+ | |||
+ | If the source is a directory instead of a file, you need to use ''scp -r'' | ||
If you want to send an epub file ''book.epub'' from your Desktop folder to the reMarkable's home folder ''/home/root'', the above would translate to | If you want to send an epub file ''book.epub'' from your Desktop folder to the reMarkable's home folder ''/home/root'', the above would translate to | ||
Line 37: | Line 39: | ||
As an alternative (or in addition) to the reMarkable cloud sync backup service, you should back up your system files locally. | As an alternative (or in addition) to the reMarkable cloud sync backup service, you should back up your system files locally. | ||
- | |||
- | Much of this comes from [[https://eeems.website/toltec/#2-backup|Nathaniel van Diepen's blog post]] about working on the [[https://github.com/toltec-dev/toltec|Toltec]] repository. | ||
First, make a backup folder: | First, make a backup folder: | ||
Line 45: | Line 45: | ||
</code> | </code> | ||
- | Make sure you are connecting over USB instead of WiFi for faster transfers. Then you probably want to back up at least the following, but if you intend to change other system files, feel free to transfer them too. | + | Make sure you are connecting over USB instead of WiFi for faster transfers. Then you probably want to back up at least the following, but if you intend to change other system files, feel free to add their paths too. |
+ | |||
+ | All your content (this will likely take the longest, and could be up to 8GB of data): | ||
<code> | <code> | ||
- | # all your content (this will likely take the longest, and could be up to 8GB of data) | ||
scp -r root@remarkable:~/.local/share/remarkable/xochitl/ remarkable-backup/files/ | scp -r root@remarkable:~/.local/share/remarkable/xochitl/ remarkable-backup/files/ | ||
+ | </code> | ||
- | # your configuration file, which also contains your ssh password | + | Your configuration file, which also contains your ssh password: |
+ | |||
+ | <code> | ||
scp root@remarkable:~/.config/remarkable/xochitl.conf remarkable-backup/ | scp root@remarkable:~/.config/remarkable/xochitl.conf remarkable-backup/ | ||
+ | </code> | ||
- | # the xochitl binary, if you plan on replacing or modifying it in any way | + | The xochitl binary, if you plan on replacing or modifying it in any way: |
+ | <code> | ||
scp root@remarkable:/usr/bin/xochitl remarkable-backup/ | scp root@remarkable:/usr/bin/xochitl remarkable-backup/ | ||
</code> | </code> |