Skip to content


Adding s3fs

sudo echo private:sectet > /etc/passwd-s3fs
chmod 600 /etc/passwd-s3fs
s3fs <bucket> /s3 -o passwd_file=/etc/passwd-s3fs,use_path_request_style,url=

connecting to server backup bucket

s3fs serverbackup /mnt/s3 -o passwd_file=/etc/passwd-s3fs,use_path_request_style,url=

create mc user

./mc admin user add <name><password>

Add them to the readwrite group ./mc admin policy set myminio readwrite user=

backup script by date

mkdir /mnt/s3/<servername>/$(date +"%m-%d-%y")

rsync -ravzX </path/to/file/you/want/to/backup/> /mnt/s3/<hostname>/$(date +"%m-%d-%y")/

normal backup

rsync -ravzX <path to backup folder> /mnt/s3/<hostname>

backup that removes files removed on local system

rsync -ravzX --delete<path to backup folder> /mnt/s3/<hostname>

Want to make this site better? Open a PR or help fund hosting costs