[Plugin: Backup] quick hack to improve usability on GDrive
-
Hi,
First of all, great plugin!
I’m heavy Google drive user and and this plugin is an absolute MUST-HAVE.I’ve noticed an usability issue though. Backups are sent to google without “.zip” extension and even when file is renamed on GDrive to filename.zip you cant preview it’s contents on line.
That’s not much but those details make a difference between good and great stuff. I came with realy quick and dirty patch if anyone is interested.
find file backup/backup.php
find this function
/** * Initiates the backup procedure. * * @global string $wp_version WordPress version */ public function do_backupand change this
if ( empty( $this->options['backup_list'][$id]['location'] ) ) { $this->log( 'NOTICE', __( "Attempting to upload archive to Google Drive.", $this->text_domain ) ); $location = $this->gdocs->prepare_upload( $this->options['backup_list'][$id]['file_path'], $this->options['backup_list'][$id]['title'], $this->options['drive_folder'] );to this
if ( empty( $this->options['backup_list'][$id]['location'] ) ) { $this->log( 'NOTICE', __( "Attempting to upload archive to Google Drive.", $this->text_domain ) ); $location = $this->gdocs->prepare_upload( $this->options['backup_list'][$id]['file_path'], $this->options['backup_list'][$id]['title'].'.zip', $this->options['drive_folder'], 'application/zip' );quick and easy and now you can preview your backups online!
The topic ‘[Plugin: Backup] quick hack to improve usability on GDrive’ is closed to new replies.