The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
#11
awesome, thanks for inclusion into core, realy busy at the moment, daughter just had major op so will be offline for a number of days but will look at the backup all, maybe try prepending a . to the backup folder name but if im correct that would hide the file from view on a mac not sure about other systems, got a few ideas on this i'll look at soon as i can, im working on restore feature too which will be extremely experimental
  Reply
#12
Looking forward to playing with this and incorporating it into my Cron System!
  Reply
#13
Thoughts on what might be causing this error? Obviously the file name is too long - but why???

Warning: copy(): File name is longer than the maximum allowed path length on this platform (4096): /home/aircentralized/public_html/mydash/backups/backup_everything_2017-07-04T17-25-47/files//backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/b in /home/aircentralized/public_html/mydash/users/helpers/backup_util.php on line 67

The backup still succeeds and is complete...
  Reply
#14
hmm is it localhost or remote server ? what platform is it on?
  Reply
#15
Remote, cPanel, latest version.
  Reply
#16
It looks like it is backuping up the backup folder into the backup folder and just keeps going and going and going and going and doesn't stop.........any way to exclude the backup folder from the list of folders? I am using 'backup/' as the directory. Or is this the ongoing issue Mudmin had posted about? No issues when I use anything but the Database & ALL files.
  Reply
#17
That's the ongoing issue. It actually does finish, but on my 1gigabyte DMS project, it can take half an hour or so. Then I just have to open the zip and delete the backup folder and everything is good. The fix is going to be to exclude that, but it is building the array a little differently than I expected and I didn't get a chance to figure out how to stop it.
  Reply
#18
Where exactly does it pull all the directories? If I could figure that out I can work on seeing if I can figure out how to exclude it...

Thanks!
  Reply
#19
It's getting those directories from the top of the admin_backup.php file you can see where it's doing /users and /usersc and where the everything option adds /

The problem is that when it adds the array it must be doing it in memory or somewhere else, because everything I've done to exclude folders and files that begin with backup only result in the db being backed up and nothing else. The backup program itself is in the helpers folder. Feel free to take a crack at it. I ran out of time.

I'd also like to make a feature to just select folders, because, for instance, my DMS app has all the code stored in a private repository, so I really only need the receipts people upload to it and the db. There's really no reason to backup userspice itself. I already have that.
  Reply
#20
this is why left out backup all origionaly, maybe instead of back up all we could produce a checkbox list files/directories at root and just select what to backup
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)