anglerud / word-up Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/word-up
License: GNU General Public License v3.0
Automatically exported from code.google.com/p/word-up
License: GNU General Public License v3.0
About ===== A very simple set of cron-based backup scripts. 'backup.py' creates a backup, and 'backup_cleanup.py' removes old backups. Being very simple, it has no concept of anything but the N last backups. What makes it especially simple to use is that it picks up how to back up your database from your wordpress config itself - there is nothing to configure, apart from pointing the backup tool to the right directory. The backup tool creates a zip file containing your wordpress files, the wordpress config (but not the wordpress install), and a database dump. This is everything you need to restore a previous backup, or migrate the site somewhere else. Requirements ============ argparse, fs, filepath. These are all are pip installable. I suggest setting up a virtual env. Usage ===== Command line flags and help: python backup.py --help python backup_cleanup.py --help To back up a wordpress install: python backup.py /var/www/yourwordpress.com /home/you/backups python backup_cleanup.py /home/you/backups/ I suggest scheculing these via cron. To restore from a backup zip file: 1) Unzip the backup file. 2) Restore the DB user@linux:~/backup/db> mysql -h mysqlhostserver -u mysqlusername -p databasename < blog.bak.sql 3) Restore files: Copy the files into your wordpress install. Copy the config file into the wordpress install. Contact information =================== Created by Rikard Anglerud <[email protected]>. License ======= GPLv3 or later.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.