An open API service indexing awesome lists of open source software.

https://github.com/kaisersparpick/wordpress-media-library-backup-js

Backup tool to download entire WordPress media library preserving directory structure.
https://github.com/kaisersparpick/wordpress-media-library-backup-js

backup-script javascript wordpress wordpress-backup

Last synced: about 2 months ago
JSON representation

Backup tool to download entire WordPress media library preserving directory structure.

Awesome Lists containing this project

README

          

# Wordpress media library backup

Backup tool to download entire WordPress media library preserving directory structure.

WordPress offers a free export tool that allows exporting of posts, pages, comments, categories, and (only) metadata of media files.

This backup tool then takes that XML file as input and downloads all media files referenced in it using the `` tag.

The colour-coded processing states are as follows
- DOWNLOADING: Download has started for the resource at this URL
- DOWNLOADED: Download has finished
- SKIPPED: Download for this resource was skipped (the local copy is newer)
- NOT FOUND: The resource has been deleted on the remote server

The total download time is reported at the end of the backup process.

Here is a sample output

![Sample output](https://github.com/kaisersparpick/wordpress-media-library-backup-js/raw/master/sample-output.png)

# Installation
To install, run
```javascript
npm install --save wordpress-media-library-backup-js
```

# Usage
To run the console application, issue the command
```javascript
node backup.js
```
The default values for `xml-file` and `destination-directory` are "export.xml" and "./backup", respectively.

Examples
```javascript
node backup.js
node backup.js export.xml /home/username/wp-backup
node backup.js export.sample.xml C:/temp/wordpress-media-library
```