Skip to content

Instantly share code, notes, and snippets.

@Refhi
Refhi / nextcloud-snap-backup.sh
Last active October 10, 2024 12:14 — forked from kapcom01/nextcloud-snap-backup.sh
Nextcloud 13 snap backup script
#! /bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
user=refhi
backups=/home/refhi/backups
if [[ $EUID > 0 ]]
then echo "Please run as root"
exit
fi