HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: Yirkha on 2009-01-08 21:51:40

Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-01-08 21:51:40
This component allows periodic automatic saving of configuration and other data in foobar2000 and keeping backup copies of the profile folder.

The save operation itself does the same as (hidden) command "File > Save Configuration", that means it saves configuration (the whole configuration subfolder), Media library database (database.*), playlists and any additional data managed by other components (for example current theme or playback statistics).

Backup process stores configurable list of files and directories into a ZIP archive with file name like "autobackup.20091005-121722.zip" in user-specified folder. A ZIP archive is used to have everything in one file, as well as compress the (often large) database files a bit, using the fastest, but still significant and useful compression method. Very small files, as well as not much compressible files like archives and compressed images are not (re)compressed.

Configuration is possible through the following settings, available in "Autosave & Autobackup" branch in Advanced preferences:All counters are reset whenever autosave is activated due to any of the criteria. For example, when using both "while playing (minutes)" and "after X tracks", whichever applies first will trigger the save.
A message like "Autosaving... (A)" is logged to console each time, among others to avoid "bug reports" regarding random lags. One of the letters PITA at the end reveals the reason – while Playing, when Idle, after Track or Always.

Note that configuration saving can be a resource intensive operation, particularly with larger libraries or playlists. It should not disturb playback, however user interface lag might occur.
The subsequent backup operation is run in a detached thread with lowered priority.

I've made the default settings rather conservative and according to my typical usage – each hour when foobar2000 is happily playing minimized, five minutes after everything has stopped and I'm going to do something else, then at least once a day just as a safety measure (if I haven't actually played anything and only experimented with some configuration changes, for example).

Your comments and suggestions are welcome.

 
Latest version:
  Autosave & Autobackup v10 [2010/09/23]
Dowload links:
  foo_jesus-v10.zip (http://yirkha.fud.cz/progs/foobar2000/foo_jesus-v10.zip) (43 KB)
  foo_jesus.dll (http://yirkha.fud.cz/progs/foobar2000/foo_jesus.dll) (89 KB)
  mirror (http://www.foobar2000.org/components/view/foo_jesus)
Changelog:
  v10 [2010/09/23]
    - New: Use zlib1.dll bundled with core - the component needs foobar2000 v1.1 or newer now.
    - New: Don't compress .rar and .7z files (added to existing .zip, .jpg, .jpeg and .png).
    - New: Updated default backup item list: removed "foobar2000.cfg", added "index-data" (used e.g. by Playback Statistics v3.0+).
              Note: If you are upgrading from a previous version and changed the default pattern, you ought to do this manually.
    - Fixed: Filter . and .. pseudo-directories when backing up the whole profile folder (using * as the mask).
  v9 [2010/04/20]
    - New: Option for setting delay of the first backup after startup.
    - Fixed: Even lower priority for the backup thread.
  v8 [2010/01/03]
    - Fixed: Relative paths to destination directory.
  v7 [2010/01/02]
    - New: Backup ZIP files use compression.
    - New: Configurable backup destination directory.
    - Fixed: Added 30 second limit for per-track autosave to avoid main thread overload.
  v6 [2009/11/20]
    - Added a few things to ease debugging of obscure problems in other components.
  v5 [2009/10/05]
    - Fixed: Crash with empty backup filename pattern list.
  v4 [2009/10/04]
    - New: Added backup features.
  v0.0.3 [2009/03/21]
    - Fixed: Crash when autosaving after number of tracks with Preferences dialog open.
  v0.0.2 [2009/01/09]
    – New: Ability to save each time a configured number of tracks has been played.
  v0.0.1 [2009/01/08]
    – Initial release.
Title: Autosave & Autobackup (foo_jesus)
Post by: bulhakov on 2009-01-08 22:16:38
Wow, I've been waiting for ages for such component. Could be very useful for people who like playing with ColumnsUI or PanelsUI. Thanks
Title: Autosave & Autobackup (foo_jesus)
Post by: foorious on 2009-01-09 00:37:48
Thanks Yirkha for this useful component (foo_jesus...  ). This could even have been a part of foobar2000 !

Now for the "just a little improvement" thing  : saving your config, playlists & co. is nice, but it has happened to me more than once in the past to end up with a corrupt foobar2000.cfg file (because of other software running and making fb2k crash, not enough free memory which would mess up with foobar quitting, whatever). In that case, you'd better have a recent backup of that precious cfg file if you don't want to start all over again. So, would it be a good idea to automatically backup the foobar2000.cfg in the same folder ? (maybe some foobar2000.cfg.bak, I don't know, you get the point).

Thanks again.
Title: Autosave & Autobackup (foo_jesus)
Post by: freetochoose on 2009-01-09 02:48:31
Thanks for the great component. I am just wondering if you can add a menu item or I can create a command button to save all configurations on demand. Sometimes I know that I have made a few changes to configurations and playlists, if I don't save them I might lose them all should there be a crash.

ftc
Title: Autosave & Autobackup (foo_jesus)
Post by: ZeeJay on 2009-01-09 05:10:01
Great improvement to foobar2000.
Really thanks for this component!

BTW, there is a better name for it?

Edit: typo.
Title: Autosave & Autobackup (foo_jesus)
Post by: Axon on 2009-01-09 05:45:06
Who else saves better than Jesus?
Title: Autosave & Autobackup (foo_jesus)
Post by: 2E7AH on 2009-01-09 06:32:57
first save yourself (File > Save Configuration), then ask Jesus
Title: Autosave & Autobackup (foo_jesus)
Post by: ZeeJay on 2009-01-09 07:20:51
Who else saves better than Jesus?


The Invisible Pink Unicorn.
Title: Autosave & Autobackup (foo_jesus)
Post by: DocBeard on 2009-01-09 11:30:12
I am just wondering if you can add a menu item or I can create a command button to save all configurations on demand.


This ability actually exists already. It's not visible on the menu, but you can bind File->Save Configuration to a keyboard shortcut or to a button (the latter I've only tested in Columns UI because I am deeply lazy, but there's no reason it shouldn't work in Default as well).

Anyhow, thanks for the component, Yirkha!
Title: Autosave & Autobackup (foo_jesus)
Post by: freetochoose on 2009-01-09 17:10:55

I am just wondering if you can add a menu item or I can create a command button to save all configurations on demand.


This ability actually exists already. It's not visible on the menu, but you can bind File->Save Configuration to a keyboard shortcut or to a button (the latter I've only tested in Columns UI because I am deeply lazy, but there's no reason it shouldn't work in Default as well).

Anyhow, thanks for the component, Yirkha!


Thanks, DocBeard. It was not obvious to me before, now I know.
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-01-09 17:40:14
Saving your config, playlists & co. is nice, but it has happened to me more than once in the past to end up with a corrupt foobar2000.cfg file (because of other software running and making fb2k crash, not enough free memory which would mess up with foobar quitting, whatever). In that case, you'd better have a recent backup of that precious cfg file if you don't want to start all over again. So, would it be a good idea to automatically backup the foobar2000.cfg in the same folder ?
It's the core what does the saving, this component only launches the menu command to do it, so there is no reliable control over that part.

Maybe start using Windows Vista…
(http://i42.tinypic.com/29c2aa0.png)
ETA: mikusr reminded me that "Previous versions" is available only in Business, Enterprise and Ultimate SKU's.
Title: Autosave & Autobackup (foo_jesus)
Post by: LordWarlock on 2009-01-09 18:03:28
Would it be possible to add an option to save every time playback of a new track starts?
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-01-09 18:29:26
I thought about that initially, then everything became time-based, so I abandoned it. I also don't like constant updates, because when something bad happens while saving, it creates much bigger problems. I guess I made it usable with rather long intervals also because I don't care about recent activity much. I was only surprised sometimes when my changes from last month were gone or so.

But oh well, you are second to ask for this, I will give it another thought.
Title: Autosave & Autobackup (foo_jesus)
Post by: Harun on 2009-01-09 18:46:48
praise the lord!

Thanks for a plugin that is useful. I can't tell you how many times I've had to redo things to my theme/layout, remake playlists, etc because  they went into oblivion. This plugin is probably essential enough to most users that it should be a built-in feaure of foobar2000.
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-01-09 20:05:49
v0.0.2 released, first post in this topic updated.
Title: Autosave & Autobackup (foo_jesus)
Post by: Hakubo on 2009-01-10 00:02:26
Thank you Yirkha, this component kind of made my day.
Title: Autosave & Autobackup (foo_jesus)
Post by: d0ng on 2009-01-10 02:51:01
What a cool name for a plugin. WWJD?

Its a great plugin, saves me the hassle of redoing all those keyboard configs.  Thanks Yirkha
Title: Autosave & Autobackup (foo_jesus)
Post by: skelly831 on 2009-01-10 05:38:17
Cool component, this should save me some work after my neighborhood's frequent pawer outages lol
Title: Autosave & Autobackup (foo_jesus)
Post by: Borisz on 2009-01-11 01:36:53
Thanks Yirkha for this useful component (foo_jesus...  ). This could even have been a part of foobar2000 !

Now for the "just a little improvement" thing  : saving your config, playlists & co. is nice, but it has happened to me more than once in the past to end up with a corrupt foobar2000.cfg file (because of other software running and making fb2k crash, not enough free memory which would mess up with foobar quitting, whatever). In that case, you'd better have a recent backup of that precious cfg file if you don't want to start all over again. So, would it be a good idea to automatically backup the foobar2000.cfg in the same folder ? (maybe some foobar2000.cfg.bak, I don't know, you get the point).

Thanks again.

Going further, it would be useful if the plugin could make whole config backups at set intervals, timestamped into an alternate directory (like backup\20081119\). The shadow copy functionality in Vista is very useful but not available for all.

Also, best plugin description ever.
Title: Autosave & Autobackup (foo_jesus)
Post by: foorious on 2009-01-11 12:17:22
Yes, some of us don't want to use Vista because XP is lighter and better for a HTPC.
Moderation: This point has been disputed, see the split topic [a href='index.php?showtopic=68732']here[/a].[/size]

Any backup software could automatically make those foobar.cfg backups, but it would be even better if a foobar component (or foobar itstelf... hint, hint  ) could do it.
Title: Autosave & Autobackup (foo_jesus)
Post by: Leak on 2009-03-03 16:36:09
It's the core what does the saving, this component only launches the menu command to do it, so there is no reliable control over that part.

Ummm... unless there's no way to know where the config file itself resides couldn't the component just do a regular ol' file copy to a (configurable) backup directory *before* making Foobar2000 save it's configuration? That should pretty much have the desired effect...
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-03-03 17:17:06
Thank you, such ideas are welcome.

It is possible to retrieve the path of profile directory.

Now what files should be copied? You can't know if some component writes extra configuration files (e.g. PlaybackStatistics.dat).

Copying everything is not a good solution - for example, portable installations use the installation directory as profile directory, so all components and any other random junk someone stores there would be copied as well each time.

Configurable list of files to back up? No thanks.
Title: Autosave & Autobackup (foo_jesus)
Post by: mrinferno on 2009-03-06 13:55:21
thanks for the work on the plug-in, trying it out today.  it's pretty much exactly what i've been hoping for and i'm glad i just happened to stumble on it today.

I agree, there is no need to automatically copy the files from the %appdata%\foobar2000 and %programfiles%\foobar2000 folders, you can easily do that already do that using backup scripts (robocopy or winrar, etc).  besides it doesn't really need to be done that often.

the most useful thing for me is the autosaving of playlists and playback stats database.

will be very useful on my work laptop, where I have to test software and occasionally BSOD after hours of having foobar open playing tracks.  I use foo_removeplayed, so this will awesome as i won't have to manually edit any playlists i was listening to after a crash.

also, i didn't know about the hidden menu file -> save configuration ;-) learn something new about foobar every day i guess.
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-03-21 11:30:38
v.0.0.3 released, addresses issue with autosaving after number of tracks with Preferences dialog open.
Title: Autosave & Autobackup (foo_jesus)
Post by: fbuser on 2009-03-21 17:54:23
Doesn't work with foobar2000 0.9.5.6 anymore.
On startup you get the message: Module "foo_jesus.dll" has been removed since last run. Would you like to keep its settings?
After answering the question for keeping the settings with yes or now you get:
Failed to load DLL: foo_jesus.dll
Reason: Die angegebene Prozedur wurde nicht gefunden.
(Translation: The specified procedure could not be found)
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-03-21 22:53:40
Yes. Redownload, I've updated the files linked from the first post with 0.9.5+ compatible version. Nothing for 0.8.3 is coming though, sorry!
Title: Autosave & Autobackup (foo_jesus)
Post by: Narushima on 2009-04-01 19:14:33
The save operation itself does the same as (hidden) command "File > Save Configuration"

Is there a way to make that hidden command appear ?
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-04-01 19:17:42
No.

Edited: Since fb2k 1.0 (currently in beta) it's possible to hold shift while clicking the main menu to show it.
Title: Autosave & Autobackup (foo_jesus)
Post by: Narushima on 2009-04-02 00:39:54
Too bad then. Well thanks for the answer and the plugin !
Title: Autosave & Autobackup (foo_jesus)
Post by: saivert on 2009-04-05 20:06:50
Thank you so much for this component. I hate to lose settings and statistical data if my PC crashes. foobar2000 itself runs stable but you can't say the same about Vista 64 or bad hardware glitches etc.

I think I'm pushing my hardware too much. Currently running Dual Monitor setup on a weak graphics card like 8800GTS also running latest drivers.
Yet just 10 mins ago I had a looping sound crash and everything froze. Don't know what caused it cos I didn't receive a BSOD so I could see the bug check code.
Title: Autosave & Autobackup (foo_jesus)
Post by: Ardax on 2009-04-07 19:00:00
Maybe start using Windows Vista…
ETA: mikusr reminded me that "Previous versions" is available only in Business, Enterprise and Ultimate SKU's.

And for those using Home Basic or Premium, there's ShadowExplorer (http://www.shadowexplorer.com/).
Title: Autosave & Autobackup (foo_jesus)
Post by: pano on 2009-06-12 19:39:18
Hi there. Great component, dumb question: Where are the files stored, and how do I retrieve them when in trouble?

Thanks, pano
Title: Autosave & Autobackup (foo_jesus)
Post by: tpijag on 2009-06-12 19:55:12
There is nothing to retrieve.
It is not making a series of backups.
Depending on how you have set up Foobar the files are in your Foobar directory/subdirectories or your user profile directory.

terry
Title: Autosave & Autobackup (foo_jesus)
Post by: boombaard on 2009-06-28 16:55:42
The most troubling foobar crashes also delete/overwrite the settings file, though.. Might I request that it makes a backup to a \backup folder along with the regular saves? (of at least the cfg file, and perhaps, though less essentially, also of the playback stats)?
Title: Autosave & Autobackup (foo_jesus)
Post by: Chris Norman on 2009-06-28 18:17:10
I also had quite a lot of problems with data loss and I appreciate this plugin. On XP I run additionally a backup software SyncBack (http://www.2brightsparks.com/) over the foobar folder every day. It's capable of versioning and very light-weight. With this setup hopefully I'll never loose anything again... 
Title: Autosave & Autobackup (foo_jesus)
Post by: phool on 2009-06-30 07:21:00
Ok, so I was wondering how exactly this component works? Where is the autosaved info actually saved? Yesterday I was working wit the GIMP Portable which froze on me and gave me a lovely white screen. Foobar was running in the background and I couldn't close it properly and was forced to do a manual reboot. Anyhoo on restart I started up Foobar again and I got an error dialog indicating that my foobar config file couldn't be opened and basically all my settings and playback info was reset

I have this plugin installed but can't locate the autosaved info anywhere. Or am I completely on the wrong track as to how this plugin works?

Edit: It appears from the posts above that I have no hope in recovering that lost information  Dang. I guess then a second (third? fourth?) for feature request for the backup of foobar.cfg; database.dat and playbackstatistics.dat is in order...
Title: Autosave & Autobackup (foo_jesus)
Post by: foosion on 2009-06-30 17:54:36
Ok, so I was wondering how exactly this component works?

This component allows periodic automatic saving of configuration and other data in foobar2000. The save operation itself does the same as (hidden) command "File > Save Configuration", that means it saves configuration (foobar2000.cfg), Media library database (database.*), playlists and any additional data managed by other components (for example theme.fth or PlaybackStatistics.dat).

This means the component does not save a separate copy of all the configuration files, it just makes foobar2000 write the current content to disk.
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-10-05 11:22:52
Hi all, version v4 with backup features is now available. See the updated [a href='index.php?act=findpost&pid=608432']first post[/a] for details.
Title: Autosave & Autobackup (foo_jesus)
Post by: phool on 2009-10-05 11:45:02
Now with autobackup! Our prayers have been answered! Will definitely give this bad boy a whirl when I get home
Title: Autosave & Autobackup (foo_jesus)
Post by: vintagejakker on 2009-10-05 21:29:43
Excelent time and worry saver many thanks!
Title: Autosave & Autobackup (foo_jesus)
Post by: Jack Schmaltz on 2009-10-21 11:28:29
just want to say a quick thank you for this plug in.

iv had it installed for some time now but iv never had to actually put it into practice until today when i booted up foobar & found all my playback stats had been wiped, but foo jesus had saved the day with a backup made last night.

thank you
Title: Autosave & Autobackup (foo_jesus)
Post by: juglesh on 2009-11-20 15:42:12
Ok, this is great thanks!  and just to know that that hidden file>save cfg is there and i can bind a shortcut key to is great too.

While on a sailing/scuba adventure in Australia last summer, at night the crew would tie off to a mooring buoy with the regular line, and the 'jesus line'.  Why? cuz if the main line broke overnight, you'd say "Jesus, i'm glad we tied that other line, also".  get it?...foo_jesus
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-11-20 21:52:29
Thanks for positive feedback

See the updated [a href='index.php?act=findpost&pid=608432']first post[/a] for details about just released new version v6. Not a required update, just a some minor maintenance stuff.

and just to know that that hidden file>save cfg is there and i can bind a shortcut key to is great too.
With the fb2k v1.0 (beta), released a few hours ago, you can access this and other hidden commands by Shift+clicking on the menu, great for commands you don't need very often.
Title: Autosave & Autobackup (foo_jesus)
Post by: randal1013 on 2009-11-22 23:06:52
my computer just crashed (my fault) with foobar open. when i opened foobar again it said the config was damaged and everything was lost. but then i remembered i have foo_jesus watching my back and i was able to completely restore my foobar from the backup files.

i just wanted to say thanks for making this component. you just saved me from a heart attack.
Title: Autosave & Autobackup (foo_jesus)
Post by: GeSomeone on 2009-11-25 12:33:38
version >v4 with backup features is now available

How about using compression while building the zip file, those files compress typically to about 25% of the original size?
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-11-25 12:51:04
Are you running of disk space?
Well ther reasons were rather I didn't want to pull whole zlib in and that the backup process should be as lightweight resource-wise as possible.
Title: Autosave & Autobackup (foo_jesus)
Post by: mrinferno on 2009-11-25 14:37:51
definitely agree with the light weight approach.
no real need to compress the zips in my opinion either.

on a semi-related note, have you considered adding an option to the config to allow specifying a different path for the destination of the zip files?
if it would add too much complexity not really a big deal at all, just curious if you had already considered it.

it would be nice to play the backup zips in an alternate location on another physical disk.
however, if it's not easily implemented i can always script move/copy of the zip's using robocopy.

Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2009-11-25 14:50:37
Well, I might use the simplest LZW compression to make them a bit smaller, shouldn't take much CPU, the disk access is a bigger bottle neck and all this is done in a low-priority background thread anyway.

Yes, I'm considering a configurable path for the backups. They could also go to a subdirectory "autobackup" by default, for example, which would create less mess in the profile folder itself if you want to retain longer history.
Title: Autosave & Autobackup (foo_jesus)
Post by: GeSomeone on 2009-11-25 15:37:57
thanks for considering
Title: Autosave & Autobackup (foo_jesus)
Post by: mrinferno on 2009-11-25 15:38:48
very cool on both accounts then.

i imagine the larger the DB's you have the more useful the compression would be.
i have an 19MB database.dat and a 7MB playbackstatistics.dat, so normal zip deflate mode drops my zips from 36MB down to 6MB ;-)
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2010-01-02 22:35:34
Hi all, I've just uploaded version 7 of the component, featuring configurable directory for backups, ZIP compression and some fixes. Enjoy.
Title: Autosave & Autobackup (foo_jesus)
Post by: mrinferno on 2010-01-03 01:52:05
awesome, thanks again.
just tested the alternate directory, works great.
and about a 75% reduction in the .zip file size (for me anyways).
Title: Autosave & Autobackup (foo_jesus)
Post by: wojtek on 2010-01-03 10:40:22
Thanks for compression! (8MB to 1,5MB without noticeable performance drain).
I have a question tho, would it be possible to add relative paths? If I tried to use "..\backup" it gives me:
Quote
Autobackup error: Could not open/create destination directory.
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2010-01-03 12:47:24
Jesus.
Download v8, should work now.
Title: Autosave & Autobackup (foo_jesus)
Post by: Leak on 2010-01-03 15:01:20
FYI - the download link for foo_jesus-v8.zip in your first post actually still points to v7...
Title: Autosave & Autobackup (foo_jesus)
Post by: wojtek on 2010-01-03 17:37:17
But http://yirkha.fud.cz/progs/foobar2000/foo_jesus-v8.zip (http://yirkha.fud.cz/progs/foobar2000/foo_jesus-v8.zip) seems to work  Gonna try it in a sec.

EDIT: now seems to work ok, thanks
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2010-01-03 21:10:55
FYI - the download link for foo_jesus-v8.zip in your first post actually still points to v7...
Thanks, corrected. That's what making releases fully dressed up in the last few minutes before going outside does to people. 
Title: Autosave & Autobackup (foo_jesus)
Post by: GeSomeone on 2010-01-04 14:52:04
Thx Yirkha, the databases and playlists are compressed a lot.
Title: Autosave & Autobackup (foo_jesus)
Post by: thegesus on 2010-02-09 02:44:42
Hi Yirkha,

I save my .M3U playlists in a network collection at \\server\music\zplaylists so that things like XBOXs and other laptops can access my playlists.

Is there a way to configure foo_jesus so that it can backup these playlists too?  They are autoplaylists which are always open in Foobar and I have saved in that directory, but when I use the file->save_configuration command they are not automatically saved (I assume because Foobar is backing up the .FPL playlist saved in the foobar\playlists directory).  Is it possible to change this?

Thank you.
Title: Autosave & Autobackup (foo_jesus)
Post by: R1CH on 2010-02-11 21:25:14
Thanks for the plugin, kind of disappointing that 1.0 was released without this. Can't remember how many playlist changes have been lost because of no autosave.
Title: Autosave & Autobackup (foo_jesus)
Post by: mstram24 on 2010-02-11 21:50:28
Feature Request!  Plz consider this. this is  i think very important.  i see that by default the "autobackup" folder contains 2 compressed backups of the configuration, playlists etc.  . 

however these 2 back ups are the 2 most recent ones.  since i use foobar everyday they are usually the backups of yesterday and the day before. 
i think its necessary to have a "last month" or "last 2 weeks" backup included in the autobackup folder because very often my playlists are modified erroneously and i only notice it a few days later.  for instance today i noticed that my "favorite rock" playlist was missing quite a few songs that were  deleted by mistake a few days ago. (sometimes foobar overwrites playlists without notice if youre not careful)  this is all lost because the autobackup only contains 2 very very recent backups. 

plz include in autobackup;

1-most recent
2-second most recent
3-last 2 weeks
4-last month


(3 and 4 could be optional and configurable) but i think this is very very important and could save so many headaches. 
otherwise THANKS for this already great plugin!!
Title: Autosave & Autobackup (foo_jesus)
Post by: Zarggg on 2010-02-15 01:21:11
If you truly do use it every day like you say, I'd think that you would discover such issues well before a month goes by.
Title: Autosave & Autobackup (foo_jesus)
Post by: mstram24 on 2010-02-15 05:00:12
thats not really the point. the point is to have a 3rd or 4th option that are at least a week older than the most recent, and second most recent backups. a guy like me who uses foobar everyday, and sometimes twice a day, could screw up his playlists//config in 24 hours. sometimes i use foobar a little in the morning. then i close it. then i do some more foobaring in the evening.  lets say on the 24th i make a mistake that i discover on the 25th or 26th, then im doomed because there wont be any backups taken on the 24th.  everything gets erased. Thats why a week at least would be so much safer.
Title: Autosave & Autobackup (foo_jesus)
Post by: mrinferno on 2010-02-15 14:33:32
part of the reason why a setting was added to allow more backups.
disk is cheap;  there is also the option to switch to a partition with more space.
i keep 30 backups myself, at 10MB's each only amounts to 300MB...not a huge cost at all.
obviously it will depend on your save interval as to how many days worth of backups that might capture.

Title: Autosave & Autobackup (foo_jesus)
Post by: chri5peed0 on 2010-02-22 15:15:16
Do I alter the store of .zips to like 'D:autobackup'

Also post-crisis, how are the files activated....
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2010-02-22 21:24:02
Do I alter the store of .zips to like 'D:autobackup'
Yes.
* Directory where to store the backup .zip files
Specifies directory for the automatically created backups of the files and folders set above. If it doesn't exists, the component will attempt to create it. Can be either a relative path (in the fb2k's profile directory) or absolute, e.g. for storing the backups on external/remote disk.
Default value: autobackup


Also post-crisis, how are the files activated....
You have to extract/copy the relevant files from the backup .zip archive yourself to their correct places, replacing the damaged ones. Generally to the "profile folder", which can be opened from fb2k in Preferences > General.
Title: Autosave & Autobackup (foo_jesus)
Post by: Porcus on 2010-02-27 16:17:08
BTW, there is a better name for it?


foo_goalie?
Title: Autosave & Autobackup (foo_jesus)
Post by: David Terei on 2010-03-08 13:40:59
Woo! Love this plugin now as i just had to use it for real. I'm not sure what it is with foobar but every 6 months or so I load it up and it somehow has lost/corrupted its configuration (particularly columns ui). No more pain of setting up all my playlists and colours again. Thanks a bunch.
Title: Autosave & Autobackup (foo_jesus)
Post by: Robertina on 2010-03-15 02:26:54
foo_jesus saves an automatic backup each time I start foobar2000. Could there be an option to switch that behaviour off?

My foobar is configured to resume playback after restarting it and due to a very large media library and a lot of huge playlists it splutters the first seconds otherwise.

Thank you for this plugin, Yirkha.

Autosave & Autobackup v8 (2010/01/03), f2k v1.0.1
Title: Autosave & Autobackup (foo_jesus)
Post by: tberman333 on 2010-03-24 15:10:11
Hi Yirkha,

I save my .M3U playlists in a network collection at \\server\music\zplaylists so that things like XBOXs and other laptops can access my playlists.

Is there a way to configure foo_jesus so that it can backup these playlists too?  They are autoplaylists which are always open in Foobar and I have saved in that directory, but when I use the file->save_configuration command they are not automatically saved (I assume because Foobar is backing up the .FPL playlist saved in the foobar\playlists directory).  Is it possible to change this?

Thank you.


I am looking for this same functionality... to periodically save autoplaylists as m3u playlists on a network drive.  Does anyone know a way to do this?

Thanks!
Title: Autosave & Autobackup (foo_jesus)
Post by: mrinferno on 2010-04-14 18:41:38
foo_jesus saves an automatic backup each time I start foobar2000. Could there be an option to switch that behaviour off?


i'll second this one. would be nice to have the option to disable the backup on startup.  or maybe an option to force backups not to run within a certain time threshold of startup.

it seems to slow down the full startup of foobar for me also - large library db and lots of playlists.

i've tried messing around with timing thresholds in the options and disabling others, doesn't seem to have any effect.
even if foobar is opened, backup runs and then close and re-open moments later the backup will run again.
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2010-04-20 22:07:14
OK, I've released version 9 with even lower priority of the backup thread, which might help some, the default period for initial backup set to 1 minute instead of ~10 seconds, which might help more, and an user configuration option to alter that period, which must help everybody affected by anything. See the updated first post for details.

Hopefully this is the last version of the component again.
Title: Autosave & Autobackup (foo_jesus)
Post by: Robertina on 2010-04-21 09:23:13
Changelog:
  v9 [2010/04/20]
    - New: Option for setting delay of the first backup after startup.
    - Fixed: Even lower priority for the backup thread.

Thank you for v9.

Robertina.
Title: Autosave & Autobackup (foo_jesus)
Post by: mrinferno on 2010-04-21 12:35:39
double thanks, tried it last night.
start up times are dramatically improved.
Title: Autosave & Autobackup (foo_jesus)
Post by: GeSomeone on 2010-04-21 22:19:02
Thanks for the extra configuration for start-up. It really makes sense not to back-up before you have a chance to see that everything is OK (for example after you just restored something).
It is perfect .. for now 
Title: Autosave & Autobackup (foo_jesus)
Post by: RogerG on 2010-05-20 06:15:03
I have a suggestion:
- make an option to save after the foobar window has been inactive for x seconds.
Because saving freezes the ui, I want it to be done only if the window is in background and I am currently not using the ui.
- make an option only to save after computer has been idle for x seconds. Because saving could slow down other processes, especially hard disk access,  I'd like it to be done only if I am away from the computer.
Title: Autosave & Autobackup (foo_jesus)
Post by: teohhanhui on 2010-07-21 23:37:58
I think it would make sense to add an option of "on playlist modification, after X minutes" (delayed if further modifications are detected within the specified time frame).

Thanks. This component has saved me many times.
Title: Autosave & Autobackup (foo_jesus)
Post by: zuxla on 2010-08-21 22:23:56
Can not run foo_jesus whilte copying plugin to component folder. Message on startup foobar2000:
Quote
Failed to load DLL: foo_jesus.dll
Reason: The specified procedure could not be found.

Using foobar v1.0.

Tired of manually save playlists. Will there be a compatible version?
Title: Autosave & Autobackup (foo_jesus)
Post by: tpijag on 2010-08-21 23:25:35
Not sure what you have done, but it is compatible.

terry
Title: Autosave & Autobackup (foo_jesus)
Post by: Robbi on 2010-08-23 18:31:33
Hello,

I have a problem. By trying the new version of "foo_jesus.dll" I destroyed the old one v.0.0.3 which was running fine with my foobar 2000 v0.9.6.9. 

Is there an issue? Where can I download older versions of "foo_jesus.dll"?

Regards,
Robbi
Title: Autosave & Autobackup (foo_jesus)
Post by: thuan on 2010-08-23 18:51:14
When I use * for "Files and Directory to back up(...)" to back up everything, foo_jesus also backs up two folders "." and ".." in the zip file. Can you exclude them? Or what can I do otherwise to not include them?
Title: Autosave & Autobackup (foo_jesus)
Post by: Andreasvb on 2010-08-23 19:08:42
thuan: Those are not real folders, it's just an indicator where you're.

. = current folder
.. = go one folder up
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2010-08-23 19:41:02
Hmm yeah, a valid bug. "." and ".." are filtered in sub-directories, but not on the top most level. Will be fixed eventually.
For the time being, you can use "." instead of "*". Make sure not to store the backups under the same folder though.
Title: Autosave & Autobackup (foo_jesus)
Post by: zuxla on 2010-08-23 20:30:01
Not sure what you have done, but it is compatible.

terry

1. I have copyed plugin to components direcrory of foobar,
2. Run foobar2000 and get error message.
Is something wrong?
Title: Autosave & Autobackup (foo_jesus)
Post by: thuan on 2010-08-24 07:59:40
@Yirkha: Thanks for the hint. Obviously I don't use the profile folder as backup destination because I want to back up everything.

@Andreasvb: I'm a Unix server admin.
Title: Autosave & Autobackup (foo_jesus)
Post by: sisyph on 2010-09-16 07:08:47
just a quick question: if I pause a track does the counter (while playing, every X minutes) continue after I resume? or is it interrupted every time?

thanks for the great component!
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2010-09-19 19:53:54
if I pause a track does the counter (while playing, every X minutes) continue after I resume? or is it interrupted every time?
Time is counted when playback is really active (playing, but not paused). If it reaches the configured "while playing" value, a save/backup is triggered. The counter is reset only at startup and after an autosave (due to any of the events), otherwise it is retained across playback sessions.
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2010-09-23 02:26:19
Hi everyone, version 10 with mostly maintenance fixes is up.

Important changes: needs foobar2000 v1.1 or newer, added "index-data" to the default backup item list.

See the updated first post in this topic for details.
Title: Autosave & Autobackup (foo_jesus)
Post by: jugec92 on 2010-10-20 19:09:29
Would someone please describe the how do I restore the backup to a new Foobar installation? I couldn't find it anywhere but might have missed it.

Thank you.
Title: Autosave & Autobackup (foo_jesus)
Post by: Saxtus on 2010-10-20 19:43:03
To restore, just unzip the zipped backup file you're interested to restore (you will find them by default in "autobackup" folder), at foobar's root directory, overwriting all.
Probably foobar will re-index your library after that, it will take few minutes if it's big, but it will maintain your ratings and everything else not saved in your MP3 files.

Good luck.
Title: Autosave & Autobackup (foo_jesus)
Post by: jugec92 on 2010-10-20 22:21:07
I appreciate the quick answer. I found out I have to install all my components separately before overwriting the files, which confused me in the first place.

This is a vital plugin, thanks for maintaining it Yirkha.
Title: Autosave & Autobackup (foo_jesus)
Post by: jerrykid on 2010-11-05 07:34:57
Hi, thanks for this awesome plugin, but I'm having some problems with the autosaving settings or maybe I'm misunderstanding something:

I'm using Foobar v1.1 and Jesus v10, and I'm trying to use the save configuration hidden menu to do the autobackup and save as a zip on command, sort of like waiting for 1 min after starting foobar. Is that what it's supposed to do? The plugin is doing autosave archives correctly, but it's not doing anything noticeable when I'm shift+clicking the menu and selecting the save configuration option. Also, I tried hooking it to a keyboard combo (shift+ctrl+s), but that doesn't do anything either.

Any suggestion for how to manually trigger the autobackup (preferably with a keyboard combo)?

Thanks!

J
Title: Autosave & Autobackup (foo_jesus)
Post by: Yirkha on 2010-11-05 14:01:09
No, there is no command provided for that.

Quote
The save operation itself does the same as (hidden) command "File > Save Configuration" [provided by foobar2000 core], that means it saves configuration (the whole configuration subfolder), Media library database (database.*), playlists and any additional data managed by other components (for example current theme or playback statistics). [Only after that happens, i.e. this component synchronously executes the menu command described above, it packs the resulting files (saved by the individual components through foobar2000 core) into the backup ZIP archive.]
Title: Autosave & Autobackup (foo_jesus)
Post by: n0thng2bd0ne on 2010-11-05 15:11:15
great job!
Title: Autosave & Autobackup (foo_jesus)
Post by: Udun on 2010-12-26 15:15:37
Thanks !

Could there be an option for clearing the *.cfg (1) etc files on (succesful) exit  ?
Title: Autosave & Autobackup (foo_jesus)
Post by: cheatz on 2011-01-06 23:07:01
looking to download version 9 since i'm using an older foobar that i won't be upgrading. Is there a backup mirror to v9?
Title: Autosave & Autobackup (foo_jesus)
Post by: Robertina on 2011-01-06 23:59:30
looking to download version 9 since i'm using an older foobar that i won't be upgrading. Is there a backup mirror to v9?

cheatz, look here (http://www.hydrogenaudio.org/forums/index.php?showtopic=85994).
Title: Autosave & Autobackup (foo_jesus)
Post by: Zarggg on 2011-01-07 21:27:22
Why are you not upgrading?
Title: Autosave & Autobackup (foo_jesus)
Post by: Ephoras on 2011-02-09 00:40:52
all links seem to be down...
would be great if you could upload it again...
I rly need it:)
Title: Autosave & Autobackup (foo_jesus)
Post by: tpijag on 2011-02-09 01:01:30
Just look up ^^^^^
post # 97
Title: Autosave & Autobackup (foo_jesus)
Post by: Xonic on 2011-03-14 14:59:12
Hi I have a question: Does this component save the playlists on its own or is there a menu in preferences where I can set up things?

Regards
Title: Autosave & Autobackup (foo_jesus)
Post by: tpijag on 2011-03-14 15:04:30
Config is under Preferences>Advanced.
I have long forgotten what default is. Just make sure the word playlists is there under files and directories to backup
Title: Autosave & Autobackup (foo_jesus)
Post by: Xonic on 2011-03-14 15:53:46
Thank you. It is there. Now I don't have to worry anymore about losing them without a reason.

regards

Title: Autosave & Autobackup (foo_jesus)
Post by: RogerG on 2011-03-28 02:10:52
Thank you for this component.
I'd like to make one backup every day but only after playback has stopped for 5 minutes. Is this possible?
Title: Autosave & Autobackup (foo_jesus)
Post by: tpijag on 2011-03-28 02:15:02
You could read the detailed documentation yirkha provides in the first post, or check the components options in preferences.
Title: Autosave & Autobackup (foo_jesus)
Post by: RogerG on 2011-03-28 07:08:11
I have read it and gone through the options but I haven't found a way to do it. So I'd like to know if I missed something or if it is impossible.
Title: Autosave & Autobackup (foo_jesus)
Post by: tpijag on 2011-03-28 15:43:58
In that case, can you tell us what trouble you are having. Your request seems simple, though I may not be understanding.

Trigger a backup after 5 minutes of stopped and keep only one [most recent]backup.
Title: Autosave & Autobackup (foo_jesus)
Post by: RogerG on 2011-03-28 19:51:17
Sorry for being unclear.
I want to keep several backups, not only the most recent one. For example 10 backups would be nice. This way I would have backups for the last 10 days. I want to make a backup approximately every 24 hours. But it has to be done after playback has stopped for 5 minutes because of the interface lag. Hence it would be OK if the backup is done after 26 hours in the unlikely case that I listen to foobar for more than 2 hours. I don't think this is currently possible with Autobackup.
I'd like to request an option like 'Don't backup more often than X minutes since last autosave' that has priority over the other rules. I would set it to 24 hours and combine it with the 'Autosave when playback stops, after X minutes' option.
Title: Autosave & Autobackup (foo_jesus)
Post by: cmyden on 2011-04-30 21:40:34
This looks like a great component and would love to try.  Does anyone know if a particular version works with Foobar 0.9.6.7  ?

I have a heavily customized Foobar config, and it took many hours to get specific component versions to play nicely each other and be 100% stable without crashing.    The thought of upgrading Foobar at this point doesn't appeal to me.

I tried foo_jesus v8 with no luck ('specified procedure could not be found').

I was thinking I would try v7 next, but haven't been able to locate it anywhere.
Title: Autosave & Autobackup (foo_jesus)
Post by: cmyden on 2011-04-30 22:01:47
Quote
This looks like a great component and would love to try. Does anyone know if a particular version works with Foobar 0.9.6.7 ?

I have a heavily customized Foobar config, and it took many hours to get specific component versions to play nicely each other and be 100% stable without crashing. The thought of upgrading Foobar at this point doesn't appeal to me.

I tried foo_jesus v8 with no luck ('specified procedure could not be found').

I was thinking I would try v7 next, but haven't been able to locate it anywhere.


NM, it took some digging, but found a version that works, thanks!
Title: Autosave & Autobackup (foo_jesus)
Post by: lvqcl on 2011-04-30 22:05:37
foo_jesus v8 works with 0.9.6.9.
Title: Autosave & Autobackup (foo_jesus)
Post by: djchristian on 2011-07-12 20:20:19
Where is this autobackup file stored? I have it at default setting but i can't find the folder.
Title: Autosave & Autobackup (foo_jesus)
Post by: tpijag on 2011-07-12 20:55:57
I believe the default directory is named autobackup. You should be able to find it with Shift>File>browse configuration folder
Title: Autosave & Autobackup (foo_jesus)
Post by: hefex on 2011-08-27 20:16:26
This .dll doesn't seem to be working for me. It fails on loadup.

Also, while im here. Foobar recently crashed and i lost all of my playlists.
I went into app data to try and restore them, but they are all empty when i load them into foobar. Can anyone help?
Title: Autosave & Autobackup (foo_jesus)
Post by: godrick on 2011-08-27 21:27:44
Try using a system restore point prior to the crash if you can't find what you want in the install location.  I can't tell what is happening with your attempt to use the dll - please provide more details.  But I recommend you first try to recover what you can before trying to install this component, since installing this now will do nothing to recover what you've recently lost.
Title: Autosave & Autobackup (foo_jesus)
Post by: Zarty on 2011-11-09 11:43:38
Thanks for this component - a must have feature. 

My only observation/feedback is that, in general, it's not a good idea to leave restore procedures untried and untested and I think most people, myself incluced, probably won't get round to trying it out if it's a manual procedure.  The chances are, if things go terribly wrong, it'll be at the worst possible moment and the untried restore procedure will, like any first time task, take time to carry out. Would be good to see the restore procedure automated - perhaps made available in the hidden Menu items.  Being able to select the zip archive to unpack and restore from would be necessary. Ideally, restore could be carried on another instance of Foobar2000 for testing purposes.  This would also give a great facility to quickly build copy instances for messing around with (I suspect most problems in Foobar2000 are caused by users like me who try things out in their main instance of Foobar2000 - can be dangerous).

Good work!

Zarty
Title: Autosave & Autobackup (foo_jesus)
Post by: godrick on 2012-01-25 18:32:13
I second the restore suggestion.  I'd also like to suggest the ability to add an absolute path (in addition to the path relative to %appdata%) to the files and directories to back up.  If this capability already exists, then any help in using it correctly is appreciated: I tried adding an absolute path to the latest version of this component but it was ignored.  I ensured that I separated the absolute path with ";"s  that I use to separate all items to be backed up.

An invaluable component - thanks!
Title: Autosave & Autobackup (foo_jesus)
Post by: frogworth on 2012-06-22 10:48:05
I've been getting fairly frequent crashes lately when foo_jesus is trying to do an autosave/autobackup. I get a 1KB zip file in the autobackup folder. It's only at home - when I'm at work (same foobar installation, but on my external drive, not internal), it seems to go fine.

Any ideas why? I've been submitting crash reports. I can post the whole thing, but for reference, it starts with:

Code: [Select]
Illegal operation:
Code: C0000006h, flags: 00000000h, address: 5A4C38A0h
Additional parameters: 00000008h 5A4C38A0h C0000008h

Call path:
JesusBackupThread

Stack (0F8AFA10h):
0F8AF9F0h:  020C37E5 069A1F48 00000000 00000000
0F8AFA00h:  00010001 00000007 0013FA34 0013FBA0
0F8AFA10h:  0294121C 0F8AFA54 00000001 00000008
0F8AFA20h:  FFFFFFF1 00000008 00000000 029519A4
0F8AFA30h:  00000038 0F8AFA54 00000000 00000038
0F8AFA40h:  02964190 00000000 0295699C 077A87A8
0F8AFA50h:  02956990 00000000 00000000 00000000
0F8AFA60h:  140D0020 00100000 00000000 00000000
0F8AFA70h:  00000000 00000000 00000000 00000000
0F8AFA80h:  00000000 00000000 00000000 140D0020
0F8AFA90h:  00100000 00000084 00000000 0F8AFAF8
0F8AFAA0h:  00000024 02956990 02964190 0295699C
0F8AFAB0h:  7C830674 029411A6 0F8AFBC4 0294E7D7
0F8AFAC0h:  FFFFFFFF 0F8AFBD0 029415AD 0295699C
0F8AFAD0h:  02964194 00002812 00000000 02956990
0F8AFAE0h:  0F8AFBE4 0F8AFBB4 0F8AFC04 003DB988
0F8AFAF0h:  02956990 00000004 0020000A 00000000
0F8AFB00h:  00180001 0E8D4E00 01CD505B 0E8D4E00
0F8AFB10h:  01CD505B 0E8D4E00 01CD505B 00000050
0F8AFB20h:  00000000 02962E40 02960000 02960198

Registers:
EAX: 0F8AFA54, EBX: 00000000, ECX: 00000000, EDX: 00000000
ESI: 0F8AFB8C, EDI: 0295699C, EBP: 0F8AFAC4, ESP: 0F8AFA10

Unable to identify crash location!
Symbol: "deflateInit2_" (+0h)


with recent events:

Code: [Select]
Recent events:
Properties dialog display refresh: 0:00.001375
Wave cache: finished analysis of "E:\Music\vcmg\Ssss\01 Lowly.mp3"
Wave cache: redundant request for "E:\Music\vcmg\Ssss\01 Lowly.mp3"
Wave cache: finished analysis of "E:\Music\vcmg\Ssss\02 Zaat.mp3"
Properties dialog refresh: 0:00.000425
Properties dialog display refresh: 0:00.002226
Watching: E:\Music
Properties dialog refresh: 0:00.000129
Properties dialog display refresh: 0:00.001431
Autosaving... (I)


Machine specifications:
OS: Windows 5.1.2600 Service Pack 3 x86
CPU: Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz, features: MMX SSE SSE2 SSE3 SSE4.1 SSE4.2
Audio: Creative Sound Blaster PCI


So it must be when it's autosaving (set to be 5 minutes after music stops playing).
Title: Autosave & Autobackup (foo_jesus)
Post by: mll on 2013-03-17 19:55:04
Sorry for being unclear.
I want to keep several backups, not only the most recent one. For example 10 backups would be nice. This way I would have backups for the last 10 days. I want to make a backup approximately every 24 hours. But it has to be done after playback has stopped for 5 minutes because of the interface lag. Hence it would be OK if the backup is done after 26 hours in the unlikely case that I listen to foobar for more than 2 hours. I don't think this is currently possible with Autobackup.
I'd like to request an option like 'Don't backup more often than X minutes since last autosave' that has priority over the other rules. I would set it to 24 hours and combine it with the 'Autosave when playback stops, after X minutes' option.


Hi, I d'like to do the same, and I was wondering if you managed to achieve this.
Title: Autosave & Autobackup (foo_jesus)
Post by: AndreaT on 2013-03-19 09:32:04
Hello,

I want to make a daily backup, but I couldn't understand how to set Jesus 10 correctly.

My current setting works only if I keep Foobar running all time (so every about 24h it makes a backup as expected), but if I terminate Foobar, also the Jesus time counter resets and the daily backup is missed.

Any suggestion on how to fix this problem?

Thanks and regards, Andrea
Title: Autosave & Autobackup (foo_jesus)
Post by: Kougeru on 2013-06-26 21:12:53
I lost all my playlists. Please help me

First of all, I'm posting here because I have foo_jesus installed which was suggested long ago to prevent/recover from things like this. Second, foobar did NOT crash. I had a bluescreen of death caused by World of Tanks while I was listening to music. Apparently foobar did not like that because when I started foobar back up after the system reboot, it said "cannot read file" and opened back up in a blank list.

postimg.org/image/oc20zdy6p/

^ screenshot (copy and paste) I tried loading an old theme since apparently It also ovewrote the "theme" file, and there's no previous versions for some reason

The playlists folder itself says there's no previous versions so I guess a restore is out of the question....which I find bizarre since I backup WEEKLY. Is it possible with foo_jesus to restore my playlists? There was a good few thousands song I had on a temporary playlist that I did not get around to saving. Manually finding each song on my system and adding them back would be very time consuming/difficult, but possible...so at least I didn't lose my actual files >.<. How do I do this?

I will love anyone that helps me resolve this. You will save me countless hours of work
Title: Autosave & Autobackup (foo_jesus)
Post by: marc2003 on 2013-06-26 21:17:59
you should be looking in your foobar profile folder for the zip files this component saves. you have to restore what files you want manually.
Title: Autosave & Autobackup (foo_jesus)
Post by: Robertina on 2013-06-26 21:55:38
The component's default folder where foo_jesus saves the backups, is \autobackup

If you have changed that setting you can check your current directory here: Preferences > Advanced > Autosave & Autobackup -> "Directory where to store the backup .zip files"

Per default, the playlists folder and the theme.fth are included in the backup.
Title: Autosave & Autobackup (foo_jesus)
Post by: Kougeru on 2013-06-27 03:48:31
Not sure why I didn't get an email when you guys replied, pretty sure I enabled notifications.

Anyway, Thanks guys! I managed to fix it. I LOVE foo_jesus. seriously. You just saved me countless hours of work. Especially since Windows backup didnt even offer a restore point for some reason.

Apparently, the reason why I couldn't figure out how to work this on my own is because the last 2 of my backups were messed up. The last one was a backup of the NEW data, and the prior one that I tried initially was corruepted and could not be opened so I thought they were some special way to open it. I went back one and it all worked great. Than you so much. I'm glad I installed this last year. Increased the start-up back time to avoid accidently overwrites >.<. Now to figure out why WoT bluescreened me! Peace out guys. If there's a place to donate, I'll find it when I get some cash because you deserve it.
Title: Autosave & Autobackup (foo_jesus)
Post by: Kougeru on 2013-06-28 04:59:03
One more quick question, I apologize. Is it possible to change the save location of the autobackup? I'd prefer to not be on the same harddrive just incase something happens. I do have Windows supposedly backing this up, but I like to have as many safe guards as possible.
Title: Autosave & Autobackup (foo_jesus)
Post by: marc2003 on 2013-06-28 05:03:17
read the first post. 
Title: Autosave & Autobackup (foo_jesus)
Post by: Robertina on 2013-06-28 11:36:20
Is it possible to change the save location of the autobackup? I'd prefer to not be on the same harddrive just incase something happens.

Yes, it is. Put the desired path in Preferences > Advanced > Autosave & Autobackup -> Directory where to store the backup .zip files, for example D:\backup\foobar2000\autobackup

Depending on your intensity of use you could also consider to increase the "Number of backup copies to keep" and to create backups more often than just weekly. And please make sure that "Files and directories to back up" includes the folder with your playback statistics (index-data). My relevant settings are:
Title: Autosave & Autobackup (foo_jesus)
Post by: Kougeru on 2013-06-28 15:53:39
Sorry,marc. I knew it was there but it just wasn't working for some reason. Apparently it wasn't letting me copy and paste the path for some reason, so I thought it was wrong. Manually typing the path fixed it.
Title: Autosave & Autobackup (foo_jesus)
Post by: tophf on 2013-09-04 21:37:40
7-zip LZMA at Normal setting makes archive files two times smaller than zip, so it'd be nice to have an option to specify external archiver command line in foobar2k's advanced plugin settings.
Title: Autosave & Autobackup (foo_jesus)
Post by: STEEDOE on 2013-09-11 04:10:44
uhmmm sorry if this was already answered, but how do i apply the unzipped contents to foobar?
Title: Autosave & Autobackup (foo_jesus)
Post by: Andreasvb on 2013-09-11 07:03:49
You place them in the same structure they were copied from.
Title: Autosave & Autobackup (foo_jesus)
Post by: kttm on 2014-01-05 09:40:56
foobar2000 v1.3 keeps playlists in "playlists-v1.3" directory while foo_jesus does not backup it.
I believe this must be fixed.
Title: Autosave & Autobackup (foo_jesus)
Post by: Erich_2 on 2014-01-05 10:07:10
foobar2000 v1.3 keeps playlists in "playlists-v1.3" directory while foo_jesus does not backup it.
I believe this must be fixed.

playlists*   
Title: Autosave & Autobackup (foo_jesus)
Post by: EpicForever on 2014-03-20 21:46:54
foobar2000 v1.3 keeps playlists in "playlists-v1.3" directory while foo_jesus does not backup it.
I believe this must be fixed.

Yes, this must be fixed by yourself, by configuring plugin correctly. Just read the first post. As well as few posts above.
Title: Autosave & Autobackup (foo_jesus)
Post by: EpicForever on 2014-04-01 18:20:21
Hmm... Seems that something is broken in my config or I am missing something... I realized that backups aren't done. I found 2 .zip files with backups but they are very old: 21 and 30 days from now, and I have set completely different times... My config is:

    Autosave while playing, every X minutes: (0 = off)
    Autosave when playback stops, after X minutes: (0 = off)
    Always, no more than X minutes since last autosave: 4320    <== 3 days
    On startup, after X minutes: (0 = off)
    Every X tracks: (0 = off)
    Files and directories to back up: cddb;configuration;dvda_metabase;index-data;musical spectrum presets;playback statistics backup;playlists;settings-prtscrns;user-components;waveform_seekbar scripts;database.dat;*.fth
    Directory where to store the backup .zip files: autobackup
    Number of backup copies to keep: 5

What am I missing? I might make changes in settings since last known backup (2014-03-10)... But that would be only adding some newly created subdirectories in foobar's profile... Any help would be much appreciated

Quick edit:
I thought that I found possible reason, but I don't. I checked those .zip files and I see that any spaces in directories names aren't problem. " musical spectrum presets " and " waveform_seekbar scripts " directories are already in those backups... So if someone might thought about this - I already verified it and it's not the reason for problems.
Title: Autosave & Autobackup (foo_jesus)
Post by: dolgorazzo on 2014-07-04 11:35:07
I am having the exact same problem as EpicForever, the only difference is that I have the plugin set to create a backup once every 24 hours (instead of 3 days) since last backup, i.e. "Always, no more than X minutes since last autosave: 1440" and all other settings set to off.
Like him, I noticed the backup is created randomly, sometimes with big delays (even weeks).
Please fix this!
Title: Autosave & Autobackup (foo_jesus)
Post by: tophf on 2014-07-04 11:43:47
EpicForever, dolgorazzo, my settings are 0 / 0 / 1440 / 0 / 0 and everything is fine.
Title: Autosave & Autobackup (foo_jesus)
Post by: dolgorazzo on 2014-07-04 14:19:38
EpicForever, dolgorazzo, my settings are 0 / 0 / 1440 / 0 / 0 and everything is fine.


This way you get daily backups or, if you have not used foobar for a while, it creates a backup as soon as you launch the program?
If so, what could be our problem then? It seems like our foobar does not count right!
Title: Autosave & Autobackup (foo_jesus)
Post by: tophf on 2014-07-04 14:25:27
dolgorazzo, I'm running f2k all day long, at east 12 hours a day. The backups are created at 11:38 am - at least the last three I have at the moment (July 2-4).
Title: Autosave & Autobackup (foo_jesus)
Post by: dolgorazzo on 2014-07-13 09:40:09
dolgorazzo, I'm running f2k all day long, at east 12 hours a day. The backups are created at 11:38 am - at least the last three I have at the moment (July 2-4).


I think this is the real problem, as another user suggested years ago: for the option to work, you need to run the program at least for the time interval you set, which probably means the counter starts again each time you launch the program.
Indeed, I tried to put a smaller interval (5 minutes) and it works.
I really like this component but I'd really like to see this problem fixed!
Title: Autosave & Autobackup (foo_jesus)
Post by: Sunrays on 2014-08-15 16:13:27
i'm also not seeing new backups (after i formatted my laptop, before it was just fine)
tried to reload the plugin, reset the settings etc and still no new backups. trying to find out what is the problem:/

also a suggestion:
a button or option somewhere for manually creating a backup: "create backup now" or such. or is this possible and did i overlook this?
Title: Autosave & Autobackup (foo_jesus)
Post by: Kougeru on 2014-10-01 07:48:24
This is officially the best add-on IMO. The MOST important by far. I think it should be defaulted into the program tbh. It just saved me for the 3rd time today. Power outage corrupted my stuff as it was writing. Luckly I have Jesus backup every song (20 backups) to Dropbox. Dropbox automatically deletes the oldest when there already 20. I have it set for every song to backup, but also for every 60 minutes when idle. I had been listening to a lot of music so I had about 10 backups for the previous half hour. Luckily I only needed to try one, but it saved me. When I rebooted my PC only 3 playlists were showing data...it was frightening. Thank you for this.
Title: Autosave & Autobackup (foo_jesus)
Post by: fohrums on 2014-12-19 20:13:46
Not working for me 

Code: [Select]
Fedora 21 x64 (LXDE spin)
foobar2000 v1.3.6 -> foo_jesus v10


my settings at time of backup:

Code: [Select]
configuration;playlists;index-data;theme.fth;PlaybackStatistics.dat


I have the .zip file that I want to restore from. So I extracted to the root folder of the foobar2000 installation directory. Launched foobar2000 and I don't get anything updated.

Also can you please add a...

Code: [Select]
RESTORATION-PROCESS
=======================

...section in the original post,readme,man-page because I can't help but notice i'm missing some instructions but I can't tell what those instructions are.
Title: Autosave & Autobackup (foo_jesus)
Post by: tpijag on 2014-12-19 21:04:06
Component auto saves, but does not auto restore.

You now have a collection of unzipped files. Whichever ones you want to use to overwrite the current files need to be copied to that files location. Most likely not the root Foobar2000 directory.

For example the playlists files are in /playlists under your foobar2000 root folder.
Title: Autosave & Autobackup (foo_jesus)
Post by: lvqcl on 2014-12-19 21:57:37
my settings at time of backup:
Code: [Select]
configuration;playlists;index-data;theme.fth;PlaybackStatistics.dat

IIRC playlists and PlaybackStatistics.dat entries are now obsolete.

My settings:
configuration;playlists*;index-data;theme.fth;database.dat
Title: Autosave & Autobackup (foo_jesus)
Post by: fohrums on 2014-12-20 05:20:12
IIRC playlists and PlaybackStatistics.dat entries are now obsolete.

My settings:
configuration;playlists*;index-data;theme.fth;database.dat


Aww man, that explains a lot..unfortunately 

So can we have the component updated to stay relative?

Developer's post should have a section to provide configuration options/examples all at the same time adding what is obsolete in the changelog-sectioned. Otherwise, how would I know what correlates to what when adding fields in 'Files and directories to back up' and i'm also referring to the components offered via foobar2000's website.
Title: Autosave & Autobackup (foo_jesus)
Post by: marc2003 on 2014-12-20 05:41:57
So can we have the component updated to stay relative?


i doubt it. Yirkha hasn't posted for nearly 3 years.
Title: Autosave & Autobackup (foo_jesus)
Post by: fohrums on 2014-12-20 16:15:52
I don't want to find out that this component didn't work when times are hectic so my method is using crontab to copy the foobar2000 directory as a backup folder (raw, no .archive). Mainly, because i'm using Foobar2000 under Linux via WINE.

I just want to verify if the Foobar2000 directory stores all necessary information (library, playlists, theme, etc)? Or is there another directory I should look out for?
Title: Autosave & Autobackup (foo_jesus)
Post by: Andreasvb on 2014-12-20 16:38:52
If it's in portable mode, yes.
Title: Autosave & Autobackup (foo_jesus)
Post by: fohrums on 2014-12-22 15:30:50
Quote from: fohrums link=msg=0 date=

Foobar2000 directory stores all necessary information?

If it's in portable mode, yes.


  So, where and what are these files? This is because I don't have mine installed as portable.
Title: Autosave & Autobackup (foo_jesus)
Post by: marc2003 on 2014-12-22 17:04:02
with foobar open, hold shift and click file>browse configuration folder. (that's assuming WINE can handle the command to open whatever file browser it uses)

Title: Autosave & Autobackup (foo_jesus)
Post by: fohrums on 2014-12-22 22:20:02
Quote from: fohrums link=msg=0 date=

Foobar2000 directory stores all necessary information?

If it's in portable mode, yes.


  So, where and what are these files? This is because I don't have mine installed as portable.


Got it 

To properly understand this plugin, the opening should say "Works better if you have foobar2000 installed as 'portable'"

Now the contents of my .zip backup works when I extracted it to my foobar2000 directory.
Title: Autosave & Autobackup (foo_jesus)
Post by: fohrums on 2014-12-22 22:24:34
IIRC playlists and PlaybackStatistics.dat entries are now obsolete.


How can I backup the playback statistics from foo_playcount? Most importantly how can I found out how to backup a particular item?

**UPDATE**
I found out that these correlate to foobar2000's directory. As directories themselves or files.ext. This is what you call control! loving it!
Title: Autosave & Autobackup (foo_jesus)
Post by: DustMagnet on 2014-12-23 00:01:55
To properly understand this plugin, the opening should say "Works better if you have foobar2000 installed as 'portable'".


Not really. The only reason the description was inadequate for you is because you're not using the plugin.

In which case it helps to understand that since Vista (some 8 years ago), by default Windows expects configuration information to be saved to the user profile folder.

In the case of foobar2000, it's:
C:\Users\xxx\AppData\Roaming\foobar2000\

where xxx is your username.

The portable installation of foobar2000, where everything is in the program folder, is not normal. I don't think it's normal for any modern OS, actually.
Title: Autosave & Autobackup (foo_jesus)
Post by: Andreasvb on 2014-12-23 00:51:00
I like to have everything in one folder, easier to manage with portable.

When using Windows' own management it can sometimes end up either in roaming, local, or documents.
And you may not know what the folder is called, some use their company name, other the product name.
Title: Autosave & Autobackup (foo_jesus)
Post by: fohrums on 2014-12-23 10:44:33
To properly understand this plugin, the opening should say "Works better if you have foobar2000 installed as 'portable'".


Not really. The only reason the description was inadequate for you is because you're not using the plugin.


I don't know where you got that idea 

I like to have everything in one folder, easier to manage with portable.

When using Windows' own management it can sometimes end up either in roaming, local, or documents.
And you may not know what the folder is called, some use their company name, other the product name.


Same, I love the idea of everything in one folder. The only reason for it to be in window's configuration 'appdata" is for registry purposes (shell link, shortcuts, etc), you know the useless stuff that windows apparently thinks is important  .

Title: Autosave & Autobackup (foo_jesus)
Post by: johnniewalker39 on 2015-02-08 00:47:10
Autosave & Autobackup (foo_jesus), Free salvation for your configuration, playlists and soul.



Yirkha, GOD BLESS YOU!

Power surges made my playlist changes disappear... i had to save them by hand... THANK YOU!
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: Odinos on 2017-02-01 18:34:25
Is there a way to exclude directories from the backup? There is one component that I do not want to backup because it creates a huge cached cover db. I do want to backup the rest of the entire user-components folder.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: fohrums on 2017-02-02 06:28:39
Is there a way to exclude directories from the backup? There is one component that I do not want to backup because it creates a huge cached cover db. I do want to backup the rest of the entire user-components folder.

+1 makes sense.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: pruuat on 2017-02-02 22:43:40
Is there a way to exclude directories from the backup? There is one component that I do not want to backup because it creates a huge cached cover db. I do want to backup the rest of the entire user-components folder.

Go into Preferences and take a look at "Advenced:Autosave & Autobackup". You'll see the setting for "Files and directories to back up". Just set that to whatever you want, omitting the folder you want to exclude. My setting is:

configuration;foobar2000.cfg;playlists*;theme.fth;PlaybackStatistics.dat;database.fpl;database.dat

Hope that helps.

Title: Re: Autosave & Autobackup (foo_jesus)
Post by: Odinos on 2017-02-05 23:58:04
Is there a way to exclude directories from the backup? There is one component that I do not want to backup because it creates a huge cached cover db. I do want to backup the rest of the entire user-components folder.

Go into Preferences and take a look at "Advenced:Autosave & Autobackup". You'll see the setting for "Files and directories to back up". Just set that to whatever you want, omitting the folder you want to exclude. My setting is:

configuration;foobar2000.cfg;playlists*;theme.fth;PlaybackStatistics.dat;database.fpl;database.dat

Hope that helps.


I know I can do it that way, but that is really impractical for a number of reasons. I'd really like the option to exclude a specific folder while keeping all the others inside the parent folder.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: marc2003 on 2017-02-06 02:48:24
Well if you go back to the first post and click on the OPs username and view their profile, you'll see the last time they logged in was nearly 5 years ago. If the workarounds suggested are no good, you'll need to find something else.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: tipar on 2018-07-20 17:15:07
I do not know if it is a bug or whatever but;

after five days of trying and waiting I have come to the conclusion that this component is causing:

Quote
deletions of the cover art of the first file in random folders

I installed several components lately and after removing all of them and leaving this one for the last after installing one by one again, the problem has not appeared when I had this one left to install. That is why I think the problem is for this particular component.

Apart from that, the component is somehow confusing because I do not know exactly what does exactly backup and how can I restore the backups. I know the instructions are probably here but since I will uninstall it for good I will not check it anyways.

Regards.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: MordredKLB on 2018-07-20 18:42:44
I do not know if it is a bug or whatever but;

after five days of trying and waiting I have come to the conclusion that this component is causing:

Quote
deletions of the cover art of the first file in random folders

I installed several components lately and after removing all of them and leaving this one for the last after installing one by one again, the problem has not appeared when I had this one left to install. That is why I think the problem is for this particular component.

Apart from that, the component is somehow confusing because I do not know exactly what does exactly backup and how can I restore the backups. I know the instructions are probably here but since I will uninstall it for good I will not check it anyways.

Regards.
This wouldn't be possible. foo_jesus doesn't touch any of your files. It forces a save of the index-dbs and playlists (I can show you the SDK calls if you want), and then zips everything up into a directory you specify. It wouldn't have access to your library.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: tipar on 2018-07-21 15:41:10
Quote
The problem has not appeared when I had this one left to install.
One or two days and no problem at all. No hard feelings, though, just informing. Regards.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: tipar on 2018-08-12 16:53:46
To restore, just unzip the zipped backup file you're interested to restore (you will find them by default in "autobackup" folder), at foobar's root directory, overwriting all.
Probably foobar will re-index your library after that, it will take few minutes if it's big, but it will maintain your ratings and everything else not saved in your MP3 files.

Good luck.

I know it is from 2010 but.
First of all, I gave it a second chance and since yesterday install no problems with covers.

Second; according to that but it will maintain your ratings and everything else not saved in your MP3 files. That covers then some tags I created myself as for example album rating and song rating or RYM link—rateyourmusic—? I mean tags not default to Foobar.

Regards.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: MordredKLB on 2018-08-13 17:20:44
Second; according to that but it will maintain your ratings and everything else not saved in your MP3 files. That covers then some tags I created myself as for example album rating and song rating or RYM link—rateyourmusic—? I mean tags not default to Foobar.
No. album rating, and song rating, and RYM links sound like tags you're storing in the mp3 files themselves. Those will not be saved by foo_jesus. foo_jesus backs up your index-data folder which is where components which have databases typically store that data. foo_jesus only backs up files and directories you tell it to. Go to Preferences >> Advanced >> Autosave & Backup, and you'll see a list of all files and folders it's backing up.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: tipar on 2018-08-13 20:50:21
Thanks. I thought that those tags were stored somehow in Foobar but you are right I think that if I can see them on MP3tag then they are stored in the file.

EDIT: but then it means that even if my Foobar gets wipe out those tags are still saved so I do not have to do it all over again because Foobar will backup the settings—in property dialog—as in Artist, Album artist and custom tags. That is awesome. I have not thought about that. Awesome.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: MordredKLB on 2018-08-13 21:12:15
Thanks. I thought that those tags were stored somehow in Foobar but you are right I think that if I can see them on MP3tag then they are stored in the file.

EDIT: but then it means that even if my Foobar gets wipe out those tags are still saved so I do not have to do it all over again because Foobar will backup the settings—in property dialog—as in Artist, Album artist and custom tags. That is awesome. I have not thought about that. Awesome.
Well technically foobar isn't backing up the tags you see in the property dialog, they're just stored in the files themselves, but yes, they wouldn't be lost if foobar got wiped somehow :)
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: tipar on 2018-08-13 23:21:06
Well technically foobar isn't backing up the tags you see in the property dialog, they're just stored in the files themselves, but yes, they wouldn't be lost if foobar got wiped somehow :)

I meant that I have Foobar showing those custom tags in property dialog—spoiler—and according to Autosave then it will back up my current configuration, and then it will be shown again. How I love having left iTunes and Windows Media Player, in those cases, you would have to rate all of your songs again one by one if anything went wrong. Regards.

Spoiler (click to show/hide)

Title: Re: Autosave & Autobackup (foo_jesus)
Post by: MordredKLB on 2018-08-14 17:44:09
I gotcha! Yup, it's pretty great :)
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: onirwai on 2018-10-18 17:36:55
Because I have a mess of playlists (thanks a lot YouTube Track Manager) I closed my Default playlist accidentally and didn't notice. Then lo and behold, foo_jesus autobackup zips contain NO PLAYLISTS. Just configs, index and crap. Completely useless... False idol!

Default config for `foo_jesus`: `configuration;playlists;index-data;theme.fth;PlaybackStatistics.dat`

So I guess the playlist is gone for good if it's not in the zips and I can't Undo, right?
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: Case on 2018-10-18 18:00:59
If you are on Windows 7 you could try Previous Versions feature. Otherwise you could try file recovery software like Recuva. But if you have closed the player and don't have the playlist stored somewhere outside foobar there are no simple ways to get it back.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: onirwai on 2018-10-18 18:33:02
Good suggestions! I've located an oldish manual backup of that playlist and given up. What I'd like to know is why there aren't any playlists in the autobackup zips. This is what I was relying on foo_jesus to do.

How would one Recuva the playlist anyway? Since the playlist format is binary not UTF8 how would you know that you got it? The filename is opaque (random string) just like the contents. Is it performance considerations that are keeping the playlist format from being serialized into something you can view in a text editor?

BTW, the reason I did a manual backup was that I was using foo_youtube_source and mixing local files with music from YouTube, and I could just feel the poor support for this kind of usage. (I was trying some tunes out, moving what I liked to this playlist I lost... so everything I had painstakingly selected the past few days vanished in a poof of accidental middleclick.)

Losing work and silos you can't play from are unacceptable in 2018. A decent player logs everything (event sourcing (https://www.youtube.com/watch?v=rUDN40rdly8)), has adapter plugins for playing any media source (see VLC (https://github.com/videolan/vlc/tree/master/share/lua/playlist) or youtube-dl (https://github.com/rg3/youtube-dl/)) and has working (per-track) auto-tagging from Discogs or other sources.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: fbuser on 2018-10-18 18:36:47
Just configs, index and crap. Completely useless... False idol!
No, wrongly used for the wrong purpose.

The default config is from 2010 and since then no updates of the component took place, but the folder structure of foobar2000 itself changed since then. Replace 'playlist' in the configuration by 'playlist*' and it will also save the playlists in the future.

foo_jesus can never be a replacement for a proper backup concept, but it can help where you need to recover from recent changes, for which a normal backup is too old.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: onirwai on 2018-10-19 15:26:23
Replace 'playlist' in the configuration by 'playlist*' and it will also save the playlists in the future.

Thank you! I suspected my config was not up to date but was too lazy to skim this thread. Cunningham's Law to the rescue!
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: francesco on 2020-08-10 15:21:27
Hi

amazing , I was looking for a plugin that can autobackup even the portable version , skin , settings , tweaks
thanks
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: Kraeved on 2021-03-17 23:53:32
Installed, pressed 'Save configuration', nothing happened.
Tried to change paths, etc, no success.
And no log to trace further. :(
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: kode54 on 2021-03-18 00:49:27
What are you expecting? Save configuration only saves the one configuration to disk. It doesn't magically let you pick another configuration to save to.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: Kraeved on 2021-03-18 04:26:26
What are you expecting?
I looked for a intuitive, easy way to make sure the addon was able to work as expected.
Eight pages of discussion and nobody asked for an obvious BACKUP NOW menu item? Damn…
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: kode54 on 2021-03-18 08:07:40
That menu option isn't provided by the component, it's provided by the player. It has no visible result, other than maybe disk activity, if you somehow log or notice it.

The component actually working should result in periodic backups of this configuration when the configuration is saved, or on track changes, or on other triggers I can't think of right now. It has no visible indicator, because it's supposed to be automatic and silent.

You can find the backups, though. That's a sure fire way to make sure it's working.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: yindesu on 2021-03-24 02:35:54
Has there been any followup to this post?

I have a suggestion:
- make an option to save after the foobar window has been inactive for x seconds.
Because saving freezes the ui, I want it to be done only if the window is in background and I am currently not using the ui.

After troubleshooting my UI layout, I'm thinking that foo_jesus is the cause of my entire foobar2000 application and UI to become frozen every X tracks (lining up with a backup every X tracks).  Can something be done to make this asynchronous / not deny access to the UI / item properties / playlist views / etc.?  Unfortunately I am planning to uninstall this component in the meantime, as it is very frustrating to not be able to open the item properties to work on tags at the beginning of playback every X tracks.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: laddie on 2021-07-09 17:17:11
This only saves the configuration, not what was playing, right?

So if there's a crash or power loss, it won't restore what was playing before the crash, it will only start playing once again after the last time there was a graceful shutdown?
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: 2tec on 2021-07-09 18:18:53
I looked for a intuitive, easy way to make sure the addon was able to work as expected.

check the console
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: Paaufo on 2022-02-15 15:53:33
Is there a way to exclude a specific subfolder (or file) of the chosen paths to back up?

For example:
Save everything under user-components, except the folder of a component that happens to be quite large.

Thank you.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: ViniMan on 2022-11-27 08:27:56
Is this component getting an update for v2.0?
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: umnin on 2023-02-17 12:34:45
I'm also interested in an update of this component. I use v2 x64 beta.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: MordredKLB on 2023-02-17 18:11:10
Is this component getting an update for v2.0?
@Yirkha has not been active in 11 years, and it was never open sourced. I'm thinking the answer is no. :D

It remains to be seen how much it's still needed though. index-data is no longer lost on crash because it's written to the sqlite database as it goes. The only other thing that's a real issue then is when playlists are saved. If those happen when changes are made (and not just program close), then the only thing this component gets you is backups if you accidentally screw up something in your theme.
Title: Re: Autosave & Autobackup (foo_jesus)
Post by: Paaufo on 2023-02-18 23:30:53
...It remains to be seen how much it's still needed though. index-data is no longer lost on crash because it's written to the sqlite database as it goes. The only other thing that's a real issue then is when playlists are saved. If those happen when changes are made (and not just program close), then the only thing this component gets you is backups if you accidentally screw up something in your theme.

Hi, @MordredKLB . I wonder if you, or anyone else, could please help me with this: Could .dll (and related, such as .lua), .dll.cfg & .conf files become corrupt when the program crashes? I've been using this component to periodically save those file types (along with .fth and my playlists).

Thank you.