IPB

Welcome Guest ( Log In | Register )

Autosave & Autobackup (foo_jesus), Free salvation for your configuration, playlists and soul.
Yirkha
post Jan 8 2009, 22:51
Post #1





Group: FB2K Moderator
Posts: 2359
Joined: 30-November 07
Member No.: 49158



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:
  • Autosave while playing, every X minutes (0 = off)
    Time is counted when playback is active (i.e. not stopped nor paused) and when it exceeds this value, configuration is saved.
    Default value: 1 hour
  • Autosave when playback stops, after X minutes (0 = off)
    When playback was active, then stopped or paused for this amount of time, configuration is saved.
    Default value: 5 minutes
  • Always, no more than X minutes since last autosave (0 = off)
    Regardless of activity, when the last time autosave was run is more than so many minutes ago, configuration is saved.
    Default value: 1 day
  • On startup, after X minutes (backup only, 0 = off)
    After specified number of minutes after startup, a new backup archive with the current configuration is created.
    Note this trigger does not execute (the more intrusive) save configuration command, assuming nothing has changed since startup yet and because its point is to store the base configuration the application has been started with.
    Default value: 1 minute
  • Every X tracks (0 = off)
    Each time a track ends (it has played all the way through or another has been started manually, except when shutting down), a counter is incremented. When it exceeds this value, configuration is saved.
    Note that saving this way more often than 30 seconds since last autosave is blocked to avoid lock up or crash problems when going through a playlist too fast (e.g. on very short files or invalid entries).
    Default value: 0
  • Files and directories to back up (sep. by ;, relative to profile folder, wildcards supported)
    Items to store to the backup archive. Those which are not found are silently ignored. If an item is found out to be a directory, all files in it are added recursively.
    Default value: configuration;playlists;index-data;theme.fth;PlaybackStatistics.dat
  • 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
  • Number of backup copies to keep
    Each time a new backup archive is created, older files matching "autobackup.*.zip" in the profile directory are deleted, to leave just last this number of them.
    Default: 2
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 (43 KB)
foo_jesus.dll (89 KB)
mirror
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.


This post has been edited by Yirkha: Sep 23 2010, 01:38


--------------------
Full-quoting makes you scroll past the same junk over and over.
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Robbi
post Aug 23 2010, 18:31
Post #2





Group: Members
Posts: 9
Joined: 6-June 06
Member No.: 31535



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. mad.gif

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

Regards,
Robbi
Go to the top of the page
+Quote Post

Posts in this topic
- Yirkha   Autosave & Autobackup (foo_jesus)   Jan 8 2009, 22:51
- - bulhakov   Wow, I've been waiting for ages for such compo...   Jan 8 2009, 23:16
- - foorious   Thanks Yirkha for this useful component (foo_jesus...   Jan 9 2009, 01:37
|- - Yirkha   QUOTE (foorious @ Jan 9 2009, 01:37) Savi...   Jan 9 2009, 18:40
||- - Leak   QUOTE (Yirkha @ Jan 9 2009, 19:40) It...   Mar 3 2009, 17:36
||- - Ardax   QUOTE (Yirkha @ Jan 9 2009, 13:40) Maybe ...   Apr 7 2009, 19:00
|- - Borisz   QUOTE (foorious @ Jan 9 2009, 01:37) Than...   Jan 11 2009, 02:36
- - freetochoose   Thanks for the great component. I am just wonderin...   Jan 9 2009, 03:48
|- - DocBeard   QUOTE (freetochoose @ Jan 8 2009, 20:48) ...   Jan 9 2009, 12:30
|- - freetochoose   QUOTE (DocBeard @ Jan 9 2009, 05:30) QUOT...   Jan 9 2009, 18:10
- - ZeeJay   Great improvement to foobar2000. Really thanks for...   Jan 9 2009, 06:10
|- - Porcus   QUOTE (ZeeJay @ Jan 9 2009, 06:10) BTW, t...   Feb 27 2010, 17:17
- - Axon   Who else saves better than Jesus?   Jan 9 2009, 06:45
- - 2E7AH   first save yourself (File > Save Configuration)...   Jan 9 2009, 07:32
- - ZeeJay   QUOTE (Axon @ Jan 9 2009, 02:45) Who else...   Jan 9 2009, 08:20
- - LordWarlock   Would it be possible to add an option to save ever...   Jan 9 2009, 19:03
- - Yirkha   I thought about that initially, then everything be...   Jan 9 2009, 19:29
- - Harun   praise the lord! Thanks for a plugin that is...   Jan 9 2009, 19:46
- - Yirkha   v0.0.2 released, first post in this topic updated.   Jan 9 2009, 21:05
- - Hakubo   Thank you Yirkha, this component kind of made my d...   Jan 10 2009, 01:02
- - d0ng   What a cool name for a plugin. WWJD? Its a great ...   Jan 10 2009, 03:51
- - skelly831   Cool component, this should save me some work afte...   Jan 10 2009, 06:38
- - foorious   Yes, some of us don't want to use Vista becaus...   Jan 11 2009, 13:17
- - Yirkha   Thank you, such ideas are welcome. It is possible...   Mar 3 2009, 18:17
- - mrinferno   thanks for the work on the plug-in, trying it out ...   Mar 6 2009, 14:55
- - Yirkha   v.0.0.3 released, addresses issue with autosaving ...   Mar 21 2009, 12:30
- - fbuser   Doesn't work with foobar2000 0.9.5.6 anymore. ...   Mar 21 2009, 18:54
- - Yirkha   Yes. Redownload, I've updated the files linked...   Mar 21 2009, 23:53
- - Narushima   QUOTE (Yirkha @ Jan 8 2009, 22:51) The sa...   Apr 1 2009, 19:14
- - Yirkha   No. Edited: Since fb2k 1.0 (currently in beta) it...   Apr 1 2009, 19:17
- - Narushima   Too bad then. Well thanks for the answer and the p...   Apr 2 2009, 00:39
- - saivert   Thank you so much for this component. I hate to lo...   Apr 5 2009, 20:06
- - pano   Hi there. Great component, dumb question: Where ar...   Jun 12 2009, 19:39
- - tpijag   There is nothing to retrieve. It is not making a s...   Jun 12 2009, 19:55
- - boombaard   The most troubling foobar crashes also delete/over...   Jun 28 2009, 16:55
- - Chris Norman   I also had quite a lot of problems with data loss ...   Jun 28 2009, 18:17
- - phool   Ok, so I was wondering how exactly this component ...   Jun 30 2009, 07:21
- - foosion   QUOTE (phool @ Jun 30 2009, 07:21) Ok, so...   Jun 30 2009, 17:54
- - Yirkha   Hi all, version v4 with backup features is now ava...   Oct 5 2009, 11:22
|- - GeSomeone   QUOTE (Yirkha @ Oct 5 2009, 12:22) versio...   Nov 25 2009, 13:33
- - phool   Now with autobackup! Our prayers have been ans...   Oct 5 2009, 11:45
|- - vintagejakker   Excelent time and worry saver many thanks!   Oct 5 2009, 21:29
- - Jack Schmaltz   just want to say a quick thank you for this plug i...   Oct 21 2009, 11:28
- - juglesh   Ok, this is great thanks! and just to know th...   Nov 20 2009, 16:42
|- - Yirkha   Thanks for positive feedback See the updated fir...   Nov 20 2009, 22:52
- - randal1013   my computer just crashed (my fault) with foobar op...   Nov 23 2009, 00:06
- - Yirkha   Are you running of disk space? Well ther reasons w...   Nov 25 2009, 13:51
- - mrinferno   definitely agree with the light weight approach. n...   Nov 25 2009, 15:37
- - Yirkha   Well, I might use the simplest LZW compression to ...   Nov 25 2009, 15:50
- - GeSomeone   thanks for considering   Nov 25 2009, 16:37
- - mrinferno   very cool on both accounts then. i imagine the la...   Nov 25 2009, 16:38
|- - chri5peed0   Do I alter the store of .zips to like 'D:autob...   Feb 22 2010, 16:15
- - Yirkha   Hi all, I've just uploaded version 7 of the co...   Jan 2 2010, 23:35
- - mrinferno   awesome, thanks again. just tested the alternate d...   Jan 3 2010, 02:52
- - lwiczek   Thanks for compression! (8MB to 1,5MB without ...   Jan 3 2010, 11:40
- - Yirkha   Jesus. Download v8, should work now.   Jan 3 2010, 13:47
|- - thegesus   Hi Yirkha, I save my .M3U playlists in a network ...   Feb 9 2010, 03:44
|- - tberman333   QUOTE (thegesus @ Feb 8 2010, 21:44) Hi Y...   Mar 24 2010, 16:10
- - Leak   FYI - the download link for foo_jesus-v8.zip in yo...   Jan 3 2010, 16:01
|- - Yirkha   QUOTE (Leak @ Jan 3 2010, 16:01) FYI - th...   Jan 3 2010, 22:10
- - lwiczek   But http://yirkha.fud.cz/progs/foobar2000/foo_jesu...   Jan 3 2010, 18:37
- - GeSomeone   Thx Yirkha, the databases and playlists are compre...   Jan 4 2010, 15:52
- - R1CH   Thanks for the plugin, kind of disappointing that ...   Feb 11 2010, 22:25
- - mstram24   Feature Request! Plz consider this. this is ...   Feb 11 2010, 22:50
- - Zarggg   If you truly do use it every day like you say, I...   Feb 15 2010, 02:21
- - mstram24   thats not really the point. the point is to have a...   Feb 15 2010, 06:00
|- - mrinferno   part of the reason why a setting was added to allo...   Feb 15 2010, 15:33
- - Yirkha   QUOTE (chri5peed0 @ Feb 22 2010, 16:15) D...   Feb 22 2010, 22:24
- - David Terei   Woo! Love this plugin now as i just had to use...   Mar 8 2010, 14:40
- - Robertina   foo_jesus saves an automatic backup each time I st...   Mar 15 2010, 03:26
|- - mrinferno   QUOTE (Robertina @ Mar 14 2010, 22:26) fo...   Apr 14 2010, 18:41
- - Yirkha   OK, I've released version 9 with even lower pr...   Apr 20 2010, 22:07
- - Robertina   QUOTE (Yirkha @ Jan 8 2009, 10:51) Change...   Apr 21 2010, 09:23
- - mrinferno   double thanks, tried it last night. start up times...   Apr 21 2010, 12:35
- - GeSomeone   Thanks for the extra configuration for start-up. I...   Apr 21 2010, 22:19
- - RogerG   I have a suggestion: - make an option to save afte...   May 20 2010, 06:15
- - teohhanhui   I think it would make sense to add an option of ...   Jul 21 2010, 23:37
- - zuxla   Can not run foo_jesus whilte copying plugin to com...   Aug 21 2010, 22:23
- - tpijag   Not sure what you have done, but it is compatible....   Aug 21 2010, 23:25
- - Robbi   Hello, I have a problem. By trying the new versio...   Aug 23 2010, 18:31
- - thuan   When I use * for "Files and Directory to back...   Aug 23 2010, 18:51
- - Andreasvb   thuan: Those are not real folders, it's just a...   Aug 23 2010, 19:08
- - Yirkha   Hmm yeah, a valid bug. "." and ".....   Aug 23 2010, 19:41
- - zuxla   QUOTE (tpijag @ Aug 22 2010, 01:25) Not s...   Aug 23 2010, 20:30
- - thuan   @Yirkha: Thanks for the hint. Obviously I don...   Aug 24 2010, 07:59
- - sisyph   just a quick question: if I pause a track does the...   Sep 16 2010, 07:08
|- - Yirkha   QUOTE (sisyph @ Sep 16 2010, 08:08) if I ...   Sep 19 2010, 19:53
- - Yirkha   Hi everyone, version 10 with mostly maintenance fi...   Sep 23 2010, 02:26
|- - jugec92   Would someone please describe the how do I restore...   Oct 20 2010, 19:09
|- - Saxtus   To restore, just unzip the zipped backup file you...   Oct 20 2010, 19:43
|- - jugec92   I appreciate the quick answer. I found out I have ...   Oct 20 2010, 22:21
- - jerrykid   Hi, thanks for this awesome plugin, but I'm ha...   Nov 5 2010, 08:34
- - Yirkha   No, there is no command provided for that. QUOTE ...   Nov 5 2010, 15:01
- - n0thng2bd0ne   great job!   Nov 5 2010, 16:11
- - Udun   Thanks ! Could there be an option for clearin...   Dec 26 2010, 16:15
- - cheatz   looking to download version 9 since i'm using ...   Jan 7 2011, 00:07
|- - Robertina   QUOTE (cheatz @ Jan 6 2011, 12:07) lookin...   Jan 7 2011, 00:59
- - Zarggg   Why are you not upgrading?   Jan 7 2011, 22:27
- - Ephoras   all links seem to be down... would be great if you...   Feb 9 2011, 01:40
- - tpijag   Just look up ^^^^^ post # 97   Feb 9 2011, 02:01
2 Pages V   1 2 >


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th August 2014 - 13:57