Idea: *** Feature Request ***
|
7th Apr, 2016, 12:51 AM
Post: #1
|
|||
|
|||
*** Feature Request ***
HI,
Hope this is the right place for this! I was wondering if it would be possible to have the xbain copier feature to remember the last saved location. As I will almost certainly always back up to the same NAS and directory it would save a little time and typing (also give less room for error) if the last location could be remembered automatically. If it is a lot of work then don't worry, I will manage! |
|||
7th Apr, 2016, 02:35 AM
Post: #2
|
|||
|
|||
RE: *** Feature Request ***
Already there
Terminal btrfs-auto-snapshot xbiancopy --img /dev/root /path-for image/imagename |
|||
7th Apr, 2016, 03:45 AM
Post: #3
|
|||
|
|||
RE: *** Feature Request ***
Ah, OK.
I meant from xbian-config, but that fits the bill too! Thank you! |
|||
7th Apr, 2016, 03:51 AM
Post: #4
|
|||
|
|||
RE: *** Feature Request ***
(7th Apr, 2016 03:45 AM)Skywatch Wrote: I meant from xbian-config, but that fits the bill too! I know. xbian-config is calling btrfs-auto-snapshot there are variables in /etc/default/xbian-snap (IMGTYPE and IMGDEST) But unfortunately they are ignored anyhow by xbian-config (hard to walk through this code ) |
|||
7th Apr, 2016, 04:02 AM
Post: #5
|
|||
|
|||
RE: *** Feature Request ***
Would it be possible to export a variable - something like $XBIAN-IMAGE-NAME where it contains "user backup name" +$hostname + $date and in xbian-config, instead of file:/media/<xbian-image-name>.img you just use $XBIAN-IMAGE-NAME
This would useful, especially for automatic image backups. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
7th Apr, 2016, 04:26 AM
Post: #6
|
|||
|
|||
RE: *** Feature Request ***
Oh yes! - A cron job to auto backup once a week would be brill! - Why didn't I think of that??? Heheheh......
|
|||
7th Apr, 2016, 05:56 AM
Post: #7
|
|||
|
|||
RE: *** Feature Request ***
95% of code is already there, but unfortunately could not find the rest of them
/etc/cron.[daily|weekly]/xbian-[daily|weekly]-btrfs should be the right place for calling xbian-config Have to ask @mk01 |
|||
9th Apr, 2016, 04:10 AM
(This post was last modified: 9th Apr, 2016 04:11 AM by Nachteule.)
Post: #8
|
|||
|
|||
RE: *** Feature Request ***
(7th Apr, 2016 04:26 AM)Skywatch Wrote: Oh yes! - A cron job to auto backup once a week would be brill! - Why didn't I think of that??? Heheheh...... Done Now you can start daily, weekly or monthly image backups - automatically. Look for the IMG* variables in file /etc/default/xbian-snap. Of course, starting an image backup within kodi's xbian-config also working now And, it is also possible to define IMGDEST varable like this: Code: IMGDEST="/mnt/backup/$(hostname)-$(date +%F).img" |
|||
9th Apr, 2016, 07:00 PM
Post: #9
|
|||
|
|||
RE: *** Feature Request ***
Woah! - You da man !!!
I'll have a go at this over the weekend! Thank you Nachteule! OK, all set up now and will wait and see what happens! It would be much more user friendly if these settings could be set within xbian-config instead of having to edit a file. Say a menu drop down to select none/daily/weekly/monthly and another box (already there) for the destination. Maybe possible? |
|||
9th Apr, 2016, 09:11 PM
Post: #10
|
|||
|
|||
RE: *** Feature Request ***
(9th Apr, 2016 07:00 PM)Skywatch Wrote: It would be much more user friendly if these settings could be set within xbian-config instead of having to edit a file. Say a menu drop down to select none/daily/weekly/monthly and another box (already there) for the destination. Maybe possible? All those features are already in Kodi's xbian-settings, category Backup. IMO this should be enough, because usually this setup will be done once and after this all is running in background automatically |
|||
10th Apr, 2016, 03:29 AM
Post: #11
|
|||
|
|||
RE: *** Feature Request ***
Aha! - Yes...now I see!
Very good! |
|||
11th Apr, 2016, 04:40 AM
Post: #12
|
|||
|
|||
RE: *** Feature Request ***
Could this also be possible for the "Backups to home"?
Whilst its nice to have the backup, it's only there while the system is up, to have it backup to an external drive would mean, one doesn't have to worry about reboots, as it's always there. Ideally, a pop up selection would be nice as to where to backup to, but some sort of option would be nice. Just an idea. Just tedious to FTP one way and then back the other Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
11th Apr, 2016, 07:51 PM
Post: #13
|
|||
|
|||
RE: *** Feature Request ***
I set up 4 pis to do this yesterday and by this morning I had 4 images automatically backed up to my network server.
I took one pi at random and restored the image. Works beautifully! Great Stuff! One question though... Is there any way to select the time of day that the backups happen? I would prefer it in the early morning hours when I am asleep and not at 9.30AM when I would be using the pis. |
|||
11th Apr, 2016, 09:45 PM
Post: #14
|
|||
|
|||
RE: *** Feature Request ***
(11th Apr, 2016 07:51 PM)Skywatch Wrote: One question though... Is there any way to select the time of day that the backups happen? I would prefer it in the early morning hours when I am asleep and not at 9.30AM when I would be using the pis. Yes, there is This is part of the cron.daily,weekly,monthly procedure. To change execution time you only have to change time in /etc/crontab |
|||
11th Apr, 2016, 09:55 PM
Post: #15
|
|||
|
|||
RE: *** Feature Request ***
Thank you! - I was looking everywhere for that but couldn't find it!
Interesting.... They were all set at 06:47 in /etc/crontab yet all the images on the server are between 09.30 and 09.53. Could it take this long to make the backup? Seems like a long time. I have changed them all to 04:47 now so will see how it works now. Prost! |
|||
« Next Oldest | Next Newest »
|