Backup

The default volumes for the docker compose images are listed as /opt/seafile-mysql/db:/var/lib/mysql for the database and /opt/seafile-data:/shared for the seafile image.

This is what the

root@c8c969f7b957:/opt/seafile# ll
total 28
drwxr-xr-x 1 root root 4096 Jun 29 01:08 ./
drwxr-xr-x 1 root root 4096 May 14 04:01 ../
lrwxrwxrwx 1 root root   21 Jun 29 01:08 ccnet -> /shared/seafile/ccnet/
lrwxrwxrwx 1 root root   20 Jun 29 01:08 conf -> /shared/seafile/conf/
lrwxrwxrwx 1 root root   20 Jun 29 01:08 logs -> /shared/seafile/logs/
drwxr-xr-x 2 root root 4096 Jun 29 01:08 pids/
lrwxrwxrwx 1 root root   28 Jun 29 01:08 seafile-data -> /shared/seafile/seafile-data/
drwxr-xr-x 1 root root 4096 May 14 02:35 seafile-server-8.0.5/
lrwxrwxrwx 1 root root   20 Jun 29 01:08 seafile-server-latest -> seafile-server-8.0.5/
lrwxrwxrwx 1 root root   27 Jun 29 01:08 seahub-data -> /shared/seafile/seahub-data/

root@c8c969f7b957:/opt/seafile# ll /shared/seafile
total 28
drwxr-xr-x 7 root root 4096 Jun 27 09:24 ./
drwxr-xr-x 6 root root 4096 Jun 27 09:47 ../
drwx------ 2 root root 4096 Jun 27 09:24 ccnet/
drwx------ 3 root root 4096 Jun 29 01:08 conf/
drwxr-xr-x 2 root root 4096 Jun 27 09:25 logs/
drwx------ 6 root root 4096 Jun 27 09:24 seafile-data/
drwxr-xr-x 5 root root 4096 Jun 28 02:00 seahub-data/

The important files are the ones linked to the docker images, i.e. /opt/seafile-data/ and /opt/seafile-mysql. Back those up. Had to salvage the lack of space on the computer due to the use of the seafile images. Note that the user accessing the files must also be the file owner itself - migrating to a shared drive with a different user will cause the containers to emit errors, even if that user has privileged read/write access.

Files are currently found under /usr/seafile/*.

Currently the space taken is:

justin@wasabi:/$ sudo du -h --max-depth=3 /opt
4.0K    /opt/containerd/lib
4.0K    /opt/containerd/bin
12K     /opt/containerd
36K     /opt/seafile-data2/seafile/conf
4.3M    /opt/seafile-data2/seafile/seahub-data
44G     /opt/seafile-data2/seafile/seafile-data
4.0K    /opt/seafile-data2/seafile/ccnet
40K     /opt/seafile-data2/seafile/logs
44G     /opt/seafile-data2/seafile
8.0K    /opt/seafile-data2/nginx/conf
12K     /opt/seafile-data2/nginx
70M     /opt/seafile-data2/logs/var-log
70M     /opt/seafile-data2/logs
392K    /opt/seafile-data2/ssl/letsencrypt
408K    /opt/seafile-data2/ssl
44G     /opt/seafile-data2
11M     /opt/seafile-mysql2/db/mysql
8.0K    /opt/seafile-mysql2/db/performance_schema
1.5M    /opt/seafile-mysql2/db/ccnet_db
11M     /opt/seafile-mysql2/db/seahub_db
4.7M    /opt/seafile-mysql2/db/seafile_db
199M    /opt/seafile-mysql2/db
199M    /opt/seafile-mysql2
44G     /opt

Blocks itself turns out to take up a surprisingly high amount of space...

justin@wasabi:/$ sudo du -h --max-depth=2 /opt/seafile-data2/seafile/seafile-data/storage/
20K     /opt/seafile-data2/seafile/seafile-data/storage/fs/657a9cde-3ca7-42b8-8c35-5e8e6084b185
72K     /opt/seafile-data2/seafile/seafile-data/storage/fs/3b298df5-a373-4b3c-aa0c-652893d461f1
742M    /opt/seafile-data2/seafile/seafile-data/storage/fs/9f833aef-169a-4fb4-898f-b87bc24df5b7
20K     /opt/seafile-data2/seafile/seafile-data/storage/fs/ceb9a5f4-8f7a-4fce-8c06-940fc931e526
20K     /opt/seafile-data2/seafile/seafile-data/storage/fs/ac4b5ca4-2653-4dda-b241-144739e2fbf8
12K     /opt/seafile-data2/seafile/seafile-data/storage/fs/a679af37-aa02-40e2-a9ff-eede0643d5fd
742M    /opt/seafile-data2/seafile/seafile-data/storage/fs
304K    /opt/seafile-data2/seafile/seafile-data/storage/blocks/657a9cde-3ca7-42b8-8c35-5e8e6084b185
3.9G    /opt/seafile-data2/seafile/seafile-data/storage/blocks/3b298df5-a373-4b3c-aa0c-652893d461f1
39G     /opt/seafile-data2/seafile/seafile-data/storage/blocks/9f833aef-169a-4fb4-898f-b87bc24df5b7
8.0K    /opt/seafile-data2/seafile/seafile-data/storage/blocks/ceb9a5f4-8f7a-4fce-8c06-940fc931e526
8.0K    /opt/seafile-data2/seafile/seafile-data/storage/blocks/ac4b5ca4-2653-4dda-b241-144739e2fbf8
43G     /opt/seafile-data2/seafile/seafile-data/storage/blocks
28K     /opt/seafile-data2/seafile/seafile-data/storage/commits/657a9cde-3ca7-42b8-8c35-5e8e6084b185
44K     /opt/seafile-data2/seafile/seafile-data/storage/commits/3b298df5-a373-4b3c-aa0c-652893d461f1
147M    /opt/seafile-data2/seafile/seafile-data/storage/commits/9f833aef-169a-4fb4-898f-b87bc24df5b7
20K     /opt/seafile-data2/seafile/seafile-data/storage/commits/ceb9a5f4-8f7a-4fce-8c06-940fc931e526
12K     /opt/seafile-data2/seafile/seafile-data/storage/commits/4c5314d2-bbd1-4584-a655-e479f4729369
20K     /opt/seafile-data2/seafile/seafile-data/storage/commits/ac4b5ca4-2653-4dda-b241-144739e2fbf8
20K     /opt/seafile-data2/seafile/seafile-data/storage/commits/a679af37-aa02-40e2-a9ff-eede0643d5fd
147M    /opt/seafile-data2/seafile/seafile-data/storage/commits
44G     /opt/seafile-data2/seafile/seafile-data/storage/