Migration
ToDo Inhalte
Migration
Siehe https://autonomic.zone/blog/2023/11/infinite-migrations/
Nextcloud
Dateien mittels rclone migrieren
sudo apt install rclone
rclone config
set -e
copy (){
OLD_USER="$1"
USERNAME="$2"
rclone config update nextcloud user "$USERNAME"
rclone config update nextcloud url "https://cloud.example.com/remote.php/dav/files/$USERNAME"
rclone copy -P ./"$OLD_USER"/files nextcloud:
sleep 2
}
cd /var/www/html/data
copy 'old_username1' 'new_username2'
copy 'old_username2' 'new_username2'
...