Skip to content

Instantly share code, notes, and snippets.

@Mihai-P
Mihai-P / backup.sh
Last active February 3, 2019 10:55 — forked from mihaikelemen/backup.sh
A minimalistic backup tool for MySQL / MariaDB or files with auto-cleanup
#!/bin/bash
#
# A minimalistic backup tool for MySQL or files with auto-cleanup after a certain period, on a Ubuntu or Centos based environments.
# It can handle multiple projects (websites) located on the server where this tool is present. Add one or more *.conf files in the backup.d directory
# For each one of them we generate the md5 checksum.
#
# Requirements:
# - md5sum (usually present by default)
# - tar (usually present by default)
# - mysqldump (it comes with MySQL/MariaDB)
@Mihai-P
Mihai-P / 0_reuse_code.js
Last active August 29, 2015 14:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console