The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Backup userspice files & table
#28
Thanks @mudmin means a lot,

i think I've solved the backup saving back issue, in admin_backup.php around line 78 replace:

Code:
$backup_dest = .$settings->backup_dest;

with:

Code:
$backup_dest = ".".$settings->backup_dest;

what I've done is prepend a DOT to the directory name so that recurse_copy() thinks its a file so then recurse_copy will basically not recognise its file type and ignore it,


we now need to apply the fix to the
Code:
$allBackupFiles
variable around line 362 so we have the right path to display the back ups.

I've only tested on localhost on mac which works as it should and doesn't hide the directory and i believe windows wouldn't either.

EDIT: scrap that lol, only worked because MacOS had hidden file, back to drawing board

I'm looking at shortening the filename as @Brandin reported so i may strip sha1 and replace with something more adaptable, i would use random_str() but its only php7 > and a polyfill has to be used for php5 > which seems a bit over the top for filenaming, maybe just strip sha1 leaving timestamp. i can't see many people wanting more than a few backups but i could be wrong
  Reply


Messages In This Thread
Backup userspice files & table - by firestorm - 07-01-2017, 05:11 PM
Backup userspice files & table - by mudmin - 07-01-2017, 05:56 PM
Backup userspice files & table - by firestorm - 07-02-2017, 08:14 AM
Backup userspice files & table - by firestorm - 07-02-2017, 08:23 AM
Backup userspice files & table - by mudmin - 07-02-2017, 02:48 PM
Backup userspice files & table - by mudmin - 07-02-2017, 02:49 PM
Backup userspice files & table - by mudmin - 07-02-2017, 03:09 PM
Backup userspice files & table - by mudmin - 07-02-2017, 03:45 PM
Backup userspice files & table - by mudmin - 07-02-2017, 03:45 PM
Backup userspice files & table - by mudmin - 07-02-2017, 10:06 PM
Backup userspice files & table - by firestorm - 07-03-2017, 08:56 PM
Backup userspice files & table - by Brandin - 07-04-2017, 06:22 PM
Backup userspice files & table - by Brandin - 07-04-2017, 06:31 PM
Backup userspice files & table - by firestorm - 07-04-2017, 06:39 PM
Backup userspice files & table - by Brandin - 07-04-2017, 06:49 PM
Backup userspice files & table - by Brandin - 07-04-2017, 07:02 PM
Backup userspice files & table - by mudmin - 07-04-2017, 07:05 PM
Backup userspice files & table - by Brandin - 07-04-2017, 07:11 PM
Backup userspice files & table - by mudmin - 07-04-2017, 07:19 PM
Backup userspice files & table - by firestorm - 07-04-2017, 07:21 PM
Backup userspice files & table - by Brandin - 07-04-2017, 07:24 PM
Backup userspice files & table - by Brandin - 07-04-2017, 07:34 PM
Backup userspice files & table - by mudmin - 07-04-2017, 07:36 PM
Backup userspice files & table - by mudmin - 07-04-2017, 07:38 PM
Backup userspice files & table - by Brandin - 07-04-2017, 07:46 PM
Backup userspice files & table - by mudmin - 07-04-2017, 07:47 PM
Backup userspice files & table - by mudmin - 07-04-2017, 07:48 PM
Backup userspice files & table - by firestorm - 07-05-2017, 09:22 AM
Backup userspice files & table - by mudmin - 07-05-2017, 11:27 AM
Backup userspice files & table - by firestorm - 07-05-2017, 01:04 PM
Backup userspice files & table - by Brandin - 07-05-2017, 03:09 PM
Backup userspice files & table - by Brandin - 07-05-2017, 03:18 PM
Backup userspice files & table - by firestorm - 07-06-2017, 09:05 AM
Backup userspice files & table - by firestorm - 07-06-2017, 02:07 PM
Backup userspice files & table - by Brandin - 07-06-2017, 02:15 PM
Backup userspice files & table - by firestorm - 07-06-2017, 02:31 PM
Backup userspice files & table - by Brandin - 07-06-2017, 02:39 PM
Backup userspice files & table - by mudmin - 07-09-2017, 12:13 PM
Backup userspice files & table - by mudmin - 08-14-2017, 05:09 PM
Backup userspice files & table - by firestorm - 08-14-2017, 05:20 PM
Backup userspice files & table - by mudmin - 08-14-2017, 05:34 PM
Backup userspice files & table - by firestorm - 08-14-2017, 06:21 PM
Backup userspice files & table - by mudmin - 08-14-2017, 06:52 PM

Forum Jump:


Users browsing this thread: 15 Guest(s)