Oct 2, 2024
cd /mnt/backup_data
.mkdir nextcloud.learnlinux.cloud
sudo chown -R [username]:[group] /mnt/backup_data/nextcloud.learnlinux.cloud
/mnt/Nextcloud_data
.rsync -avz /mnt/Nextcloud_data/ [username]@[IP address]:/mnt/backup-data/nextcloud.learnlinux.cloud
rm -rf *
):
backup.sh
.#!/bin/bash
date=$(date +%F)
chmod +x backup.sh