{"id":24922343,"url":"https://github.com/kaisersparpick/wordpress-media-library-backup-js","last_synced_at":"2026-05-02T09:32:25.053Z","repository":{"id":57399097,"uuid":"112016030","full_name":"kaisersparpick/wordpress-media-library-backup-js","owner":"kaisersparpick","description":"Backup tool to download entire WordPress media library preserving directory structure.","archived":false,"fork":false,"pushed_at":"2017-12-27T14:59:30.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-16T18:32:49.441Z","etag":null,"topics":["backup-script","javascript","wordpress","wordpress-backup"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaisersparpick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-25T15:57:09.000Z","updated_at":"2017-12-27T14:59:50.000Z","dependencies_parsed_at":"2022-09-13T21:23:13.443Z","dependency_job_id":null,"html_url":"https://github.com/kaisersparpick/wordpress-media-library-backup-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaisersparpick%2Fwordpress-media-library-backup-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaisersparpick%2Fwordpress-media-library-backup-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaisersparpick%2Fwordpress-media-library-backup-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaisersparpick%2Fwordpress-media-library-backup-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaisersparpick","download_url":"https://codeload.github.com/kaisersparpick/wordpress-media-library-backup-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245847634,"owners_count":20682335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup-script","javascript","wordpress","wordpress-backup"],"created_at":"2025-02-02T11:19:00.946Z","updated_at":"2026-05-02T09:32:25.020Z","avatar_url":"https://github.com/kaisersparpick.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wordpress media library backup\n\nBackup tool to download entire WordPress media library preserving directory structure.\n\nWordPress offers a free export tool that allows exporting of posts, pages, comments, categories, and (only) metadata of media files. \n\nThis backup tool then takes that XML file as input and downloads all media files referenced in it using the `\u003cwp:attachment_url\u003e` tag. \n\nThe colour-coded processing states are as follows\n - DOWNLOADING: Download has started for the resource at this URL\n - DOWNLOADED: Download has finished\n - SKIPPED: Download for this resource was skipped (the local copy is newer)\n - NOT FOUND: The resource has been deleted on the remote server\n\nThe total download time is reported at the end of the backup process.\n\nHere is a sample output\n\n![Sample output](https://github.com/kaisersparpick/wordpress-media-library-backup-js/raw/master/sample-output.png)\n\n# Installation\nTo install, run\n```javascript\nnpm install --save wordpress-media-library-backup-js\n```\n\n# Usage\nTo run the console application, issue the command\n```javascript\nnode backup.js \u003cxml-file\u003e \u003cdestination-directory\u003e\n```\nThe default values for `xml-file` and `destination-directory` are \"export.xml\" and \"./backup\", respectively.\n\nExamples\n```javascript\nnode backup.js\nnode backup.js export.xml /home/username/wp-backup\nnode backup.js export.sample.xml C:/temp/wordpress-media-library\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaisersparpick%2Fwordpress-media-library-backup-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaisersparpick%2Fwordpress-media-library-backup-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaisersparpick%2Fwordpress-media-library-backup-js/lists"}