- http://askubuntu.com/questions/28477/what-is-safe-to-exclude-for-a-full-system-backup
- https://wiki.archlinux.org/index.php/Full_system_backup_with_rsync
/dev/*
/lost+found
:target:before { | |
content:""; | |
display:block; | |
height:90px; /* fixed header height*/ | |
margin:-90px 0 0; /* negative fixed header height */ | |
} |
form: | |
action: / | |
name: contact-form | |
classes: contact-form | |
template: form-messages | |
referesh_prevention: true | |
fields: | |
- | |
name: name | |
label: Nombre |
# program to rename files with slug like names | |
import re | |
import os | |
import shutil | |
FOLDER_PATH = "/the-folder-path" | |
def slugify(fileName): | |
fileName = re.sub(r'\s|_', "-", fileName).lower() | |
return fileName |
// Detect touch devices | |
var isTouchDevice = function isTouchDevice() { | |
if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { | |
return true; | |
} | |
return false; | |
} | |
if ( isTouchDevice()) { | |
document.body.classList.add('touch-device'); |
#!/bin/bash | |
# This script creates a backup of a grav Instalation | |
# Go to the root of the project | |
cd httpdocs | |
# Create the backup | |
bin/grav backup |
#!/bin/bash | |
# This script updates GRAV and the plugins | |
# Go to the root of the project | |
cd httpdocs | |
# Upgrade GRAV | |
bin/gpm selfupgrade |
#!/bin/bash | |
# This script updates WordPress core and database with WP-CLI | |
# Go to WordPress directory | |
cd htdocs | |
# Update WordPress | |
wp core update |
#!/bin/bash | |
# Creates a backup of a WordPress instalation, files and database with WP-CLI | |
# Go to the root directory | |
cd htdocs | |
# Backup files of the root site | |
tar --exclude='./.git' -czvf "backup-$(date +%Y%m%d%H%M%S).tar.gz" . |