Koozali.org: home of the SME Server

Backup error using Backup to Workstation in SME10.0

Offline TerryF

  • grumpy old man
  • *
  • 1,829
  • +6/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #15 on: February 10, 2022, 10:12:33 PM »
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,829
  • +6/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #16 on: February 10, 2022, 10:24:28 PM »
So backups have been working fine in the past, trying to create a new full backup as set 5

Have you changed anything from when the backup was working and when it decided to not play?

Re includes, what directory are you showing there
--
qui scribit bis legit

Offline ReetP

  • *
  • 3,771
  • +5/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #17 on: February 11, 2022, 11:15:21 AM »
Specifically what/where is this?

 ../-rw-r--r-- 1 root root 26 Jun 26  2020 41go-into
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline uniqsys

  • *
  • 133
  • +0/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #18 on: February 11, 2022, 06:18:00 PM »
I apologize for my inability to articulate.
Quote
Specifically what/where is this?

 ../-rw-r--r-- 1 root root 26 Jun 26  2020 41go-into
That post was meant to answer TF''s question about includes/excludes.  It is the contents of the custom-template DailyBackup.dcf used to create includes and/or excludes. I displayed it to confirm my answer that there were no includes or excludes.
...

Offline uniqsys

  • *
  • 133
  • +0/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #19 on: February 11, 2022, 06:48:35 PM »
Regarding :
Quote
So backups have been working fine in the past, trying to create a new full backup as set 5
This issue is centered around a migration from SME 9.2 to SME 10.0. I installed SME10 on new equipment and did a restore from backup to port everything over, as instructed in the Wiki.  I used a new USB device with the new equipment and expected Dar to pick up where it left off in the backup routine.  The old usb backup device has gone on to better things and is not available anymore.

Results from last night's test where no mount points existed before the backup started are:  The SamsungT5 mount point under /media was created by the backup routine. So to my mind the routine should be able to create the path needed to continue the backup.  In this case it would be "Destination //localhost/media/SamsungT5/commserver.usioffice.net/set5".
Obviously that is not happening, so it appears to me and I may be wrong, that the system can not "pickup where it left off" on a new device.  If this is true, I think that is an issue because if your backup device failed for any reason and you needed to use a new one the system would break.

So for tonight's test I am going to create the path "/commserver.usioffice.net/set5" under the mount point "SamsungT5" and see if the backup routine sees it and writes to it.

BTW thanks TerryF for the exit code link. I guess my searches focused on "error codes" and not "exit codes" and that's why I couldn't find anything on it.  Thanks.
...

Offline uniqsys

  • *
  • 133
  • +0/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #20 on: February 11, 2022, 07:17:50 PM »
I just had an opportunity to run the backup early to test my directory changes as mentioned in the last post.

Results are the same errors.
Quote
Parse error: Cannot add an absolute path
Error while running dar: 1 at /etc/e-smith/events/actions/workstation-backup-dar line 246.
Backup terminated: backup failed - status: 65280
Quote
==================================
DAILY BACKUP TO WORKSTATION REPORT
==================================
Backup of commserver.usioffice.net started at Fri Feb 11 13:08:03 2022
==================================
Destination //localhost/media/SamsungT5/commserver.usioffice.net/set5
Basename full-20220211130803
Starting the backup with a timeout of 24 hours
*** No backup allowed or error during backup ***
Error while running dar: 1

I am flummoxed!
...

Offline TerryF

  • grumpy old man
  • *
  • 1,829
  • +6/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #21 on: February 11, 2022, 07:48:52 PM »
Right, so more to it than just got a new external USB HD, you do have a custom template..what is contents of

/etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf/41go-into

The error message you got provides the clue - Syntax error on command-line or DCF included file

What is contents of the USB HD, does it hold the old backup sets and inc sets, does it have more importantly the catalogue file

--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,829
  • +6/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #22 on: February 11, 2022, 07:54:04 PM »
You can run the backupo anytime you want from the cli

# /sbin/e-smith/do_backupwk
--
qui scribit bis legit

Offline uniqsys

  • *
  • 133
  • +0/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #23 on: February 11, 2022, 08:05:09 PM »
Ah, You are right. 41go-into was added by letsencrypt. The contents of the file 41go-into is:
Quote
--go-into /etc/dehydrated
So the dehydrated directory is added to the backup.
...

Offline TerryF

  • grumpy old man
  • *
  • 1,829
  • +6/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #24 on: February 11, 2022, 08:41:47 PM »
Ah, You are right. 41go-into was added by letsencrypt. The contents of the file 41go-into is:So the dehydrated directory is added to the backup.

and there is the issue..see it?  --go-into /etc/dehydrated

remeber the initial error? "Parse error: Cannot add an absolute path"

Firstly remove the leading slash /  so should be --go-into etc/dehydrated and try again..it is mentioned in the wiki but is not very explicit, if you go through the actuyal dar docs elsewhere it is covered there in more detail

You didnt show what is on the USB drive in regards to backup sets and inc files, in particular the catalogue file
--
qui scribit bis legit

Offline uniqsys

  • *
  • 133
  • +0/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #25 on: February 11, 2022, 08:52:56 PM »
Eureka!!!
The leading "/" in the 41go-into file for /etc/dehydrated was the culprit.  Removed the leading "/" and the backupwk worked without a hitch. I forgot all about that.  Obviously I am humbled and humiliated.
Thanks for all the help, I couldn't have done this alone.
I think I would like to put a note in the wiki as a caveat for others.
...

Offline uniqsys

  • *
  • 133
  • +0/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #26 on: February 11, 2022, 08:57:26 PM »
Quote
You didnt show what is on the USB drive in regards to backup sets and inc files, in particular the catalogue file
That's because the USB drive was blank. No backups had ever been done to it, so there was no catalog.
...

Offline TerryF

  • grumpy old man
  • *
  • 1,829
  • +6/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #27 on: February 11, 2022, 08:58:42 PM »
Eureka!!!
I think I would like to put a note in the wiki as a caveat for others.

No worries, we are all in the same bout :-) as I said there is a note there but it is not prominent, if you are up for it go ahead and add a more prominent warning

Re HD, I thought as much..

Enjoy and keep safe in these times..
« Last Edit: February 12, 2022, 04:40:25 AM by TerryF »
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,829
  • +6/-0
Re: Backup error using Backup to Workstation in SME10.0
« Reply #28 on: February 11, 2022, 08:59:58 PM »
my keyboard skills are shite :-) bout = boat
--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,807
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Backup error using Backup to Workstation in SME10.0
« Reply #29 on: February 11, 2022, 11:29:39 PM »
Ah, You are right. 41go-into was added by letsencrypt. The contents of the file 41go-into is:So the dehydrated directory is added to the backup.

I do not believe so ....
not part of smeserver-letsencrypt
you added it ;)