Skip to content

Instantly share code, notes, and snippets.

View philipp-r's full-sized avatar
🦤

philipp-r philipp-r

🦤
View GitHub Profile
.onion
.tk
.well-known
1link.in
1url.com
2big.at
2pl.us
2tu.us
2ya.com
3utilities.com
#!/bin/bash
DATE=`date +%Y-%m-%d-%H-%M`
# PATH
PATH=/bin:/usr/bin:/usr/local/bin
# mysql dump
mysqldump -u nextcloud_backup -pPASSWORD --databases nextcloud > mysql_$DATE.sql
wait
# zip
7z a -mhe=on -pPASSWORD mysql_$DATE.7z mysql_$DATE.sql
wait
@philipp-r
philipp-r / backup-ftp-files.sh
Created June 23, 2023 07:26
Mirror files from FTP server to local server (here to backup the Dokuwiki)
#!/bin/bash
HOST='ftp.example.com'
USER='username'
PASS='password'
REMOTEFOLDER='/var/www'
LOCALFOLDER='/home/backup/ftpcopy'
lftp -f "
open $HOST
user $USER $PASS