I do not believe the script.txt file is a console script file but a system level command file. My impression is that it is a "post" process file that is executed by autobackup after the backup has been made.

You have pointed it to a file that has a opensim console command in it. That would be meaningless to the operating system be it linux or windows.

Read carefully what this says:
AutoBackupScript: String. Default: not specified (disabled). File path to an executable script or binary to run when an automatic backup is taken. argv[1] of the executed file/script will be the file name of the generated OAR. If the process can't be spawned for some reason (file not found, no execute permission, etc), write a warning to the console.

executable script or binary = a system level program or command file, not a string for the opensim console.

I could be wrong but that is how I read that parameter to work. Did you see anything on the console like it says you should see? In you case it would be an error message saying the command you gave could not be found I would think.

It passes the file name of the file autobackup made in argv(1) for the receiving program to use should you be trying to do something with that specific file. If you really want to cause opensim to do another backup of the same OAR, you would need to point to a file with system commands that would send your commands to opensim's console. autobackup IS the backup program, not a timer to call some external backup program.

Tom


-----Original Message----- From: André Verwijs
Sent: Monday, February 23, 2015 3:02 PM
To: opensim-users opensimulator.org ; dutch.gl...@yahoo.com
Subject: [Opensim-users] How to set up autobackup



I have this in OpenSim.ini:

[AutoBackupModule]
   ;; default is module is disabled at the top level
   AutoBackupModuleEnabled = true
   AutoBackup = true
   AutoBackupInterval = 10
   AutoBackupBusyCheck = true
   AutoBackupScript = "AutoBackup.txt"
   AutoBackupNaming = "Overwrite"
   AutoBackupDir = "C:\Users\Verwijs\Documents\Opensim-MySQL\Backups"
   AutoBackupDilationThreshold = 0.5
   AutoBackupAgentThreshold = 10


"AutoBackup.txt" has this line:

save oar --perm=MCT -all
"C:\Users\Verwijs\Documents\Opensim-MySQL\Backups\OPENSUSE-REGION-PC.oar"


but on startup & run i'll get this:

on startup:

00:44:46 - [AUTO BACKUP]: Region Standalone OpenSUSE Test Region is
AutoBackup ENABLED.
00:44:46 - [AUTO BACKUP]: Reusing timer for 600000 msec for region
Standalone OpenSUSE Test Region
00:44:46 - [AUTO BACKUP]: Config for Standalone OpenSUSE Test Region
00:44:46 - [AUTO BACKUP]: AutoBackup: ENABLED
[AUTO BACKUP]: Interval: 10 minutes
[AUTO BACKUP]: Do Busy Check: Yes
[AUTO BACKUP]: Naming Type: Overwrite
[AUTO BACKUP]: Backup Dir: C:\Users\Verwijs\Documents\Opensim-MySQL\Backups
[AUTO BACKUP]: Script: AutoBackup.txt


running AutoBackup:

01:55:19 - [AUTO BACKUP]: Backing up region Standalone OpenSUSE Test Region
01:55:19 - [ARCHIVER]: Writing archive for region Standalone OpenSUSE
Test Region to
C:\Users\Verwijs\Documents\Opensim-MySQL\Backups\Standalone OpenSUSE
Test Region.oar
01:55:19 - [ARCHIVER]: Creating version 0.8 OAR
01:55:19 - [ARCHIVER]: Added control file to archive.
01:55:19 - [ARCHIVER]: Writing region Standalone OpenSUSE Test Region
01:55:19 - [ARCHIVER]: 96 scene objects to serialize requiring save of
125 assets
01:55:19 - [ARCHIVER]: Adding region settings to archive.
01:55:19 - [ARCHIVER]: Adding parcel settings to archive.
01:55:19 - [ARCHIVER]: Adding terrain information to archive.
01:55:19 - [ARCHIVER]: Adding scene objects to archive.
01:55:20 - [ARCHIVER]: Saving 125 assets
01:55:20 - [ARCHIVER]: AssetsRequest executed looking for 125 possible
assets
01:55:20 - [FLOTSAM ASSET CACHE]: Cache Get ::
df208c8d-1893-4d76-8736-4df2996a40d8 :: Hit
01:55:20 - [FLOTSAM ASSET CACHE]: File Hit Rate: 14.67% for 900 requests
01:55:20 - [FLOTSAM ASSET CACHE]: Memory Hit Rate: 81.33% for 900 requests
01:55:20 - [FLOTSAM ASSET CACHE]: Unnecessary requests due to requests
for assets that are currently downloading: 0
01:55:20 - [ARCHIVER]: Added 50 assets to archive
01:55:20 - [ARCHIVER]: Added 100 assets to archive
01:55:21 - [ARCHIVER]: Successfully added 125 assets (0 assets not found
but these may be expected invalid references)
01:55:21 - [ARCHIVER]: Finished writing out OAR for Standalone OpenSUSE
Test Region


so AutoBackup is not using "AutoBackup.txt" but saves oar with region
name, not sure why.  Autobackup should run "AutoBackup.txt" every xx set
by "AutoBackupInterval"


I've made a AutoBackup manual, here are links:
https://copy.com/ifzvn64NJkWUMJKE - "Auto Backup Module.docx"
https://copy.com/Q7gpvBKDz3hmZsLS - "Auto Backup Module.rtf"


André


______________________________________________________________________________________
My Twitter Page:
http://twitter.com/OpenSimFan

My Facebook page (be my friend, please )
http://www.facebook.com/andre.verwijs

My Google+ page (follow me please )
André Verwijs - Google+ https://plus.google.com/111310545842863442992

_______________________________________________
Opensim-users mailing list
Opensim-users@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
_______________________________________________
Opensim-users mailing list
Opensim-users@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users

Reply via email to