VDS

Jul 9 2020

#Hosted #ftp-Hosted ftp



Hosted ftp

Guy Rutenberg

Keeping track of what I do

Improved FTP Backup for WordPress

This script backups both the database and files of a WordPress blog into a remote FTP server (while keeping a local copy). It’s an update of my WordPress Backup to FTP script. The main changes are auto-detecting database settings and better support for caching plugins (specifically WP-Cache). The new version makes it easier to backup multiple WordPress blogs to the same FTP server.

Usage is pretty simple after a short initial configuration. First, save the the script and make it executable:

(assuming you saved it under the name wp-backup ). After saving it edit the file with your favorite editor and set the 5 configuration variable to whatever is appropriate for you. BACKUP_DIR is the folder to save the local backups to. FTP_HOST , FTP_USER , FTP_PASS control the FTP host, username and password, respectively, for the remote backup server. FTP_BACKUP_DIR sets the folder on the FTP server to save the remote backup to.

Now that the initial configuration is done, all you need to do is execute the script and give the path to the blog as an argument. For example:

And that it, the script will backup your files (excluding cache) and database to both a local and remote locations. This allows using the same script to backup multiple WordPress blogs, unlike the previous script which had to be modified for each blog.

And now the script itself:

Share this:

77 thoughts on “ Improved FTP Backup for WordPress ”

Awesome script, i hosted my website on a free webhost, when i tried to make a back up using their backup tool, i got an error message, and after that i was looking for another option to back up my site, and this script is most useful. thank you for such a wonderful script

I just took it and copied the entire folder. Is that bad?

You should also have a dump of your db along side it.

What a super site, keep up the good work

I keep getting many “command not found”, I’m using CENTOS 7.2 with NGINX, is there any reason for it?
Please help, I checked all over google for good scripts and this one looks like the best one I’ve found

After I wrote the Script directly from SSH it worked but still couldnt do the backup, got the following error:

line 65: //backups/databasename-20161 013.sql.bz2: No such file or directory
mysqldump: Got errno 32 on write
failed!

What have I done wrong?

Solved sorry my mistake, hat to change the permissions of the directory to 755 and to the user! PERFECT !!

Hi i cant take back up from my website .please undrestand to me

Hosted ftp



Hosted ftp

Hosted ftp

Guy Rutenberg Keeping track of what I do Improved FTP Backup for WordPress This script backups both the database and files of a WordPress blog into a remote FTP server (while keeping a
SOURCE: Hosted ftp http://www.guyrutenberg.com/2010/02/28/improved-ftp-backup-for-wordpress/ Hosted ftp

USA News. American News.

News latest news news today news headlines breaking news new current news world news top news latest news today,

headline news online news today's news headlines daily news local news breaking news today new news to day news recent news latest news headlines top news today top news stories news stories national news international.

News news update current news today today's national news news updates headlines news update today latest breaking news breaking news headlines latestnews latest national news english news latest world news latest,

news update latest news headlines for today hot news today headlines today news websites current news events the news today's news headlines in english current news headlines top news headlines national news headlines top.
Headlines latest headlines newspaper headlines today latest it news top stories current news stories news sites.

Written by admin


%d bloggers like this: