Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[IDEA] *** Feature Request ***
Thank you for your donation

Pages (3): 1 2 3 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Idea: *** Feature Request ***
7th Apr, 2016, 12:51 AM
Post: #1
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
*** 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. Smile

If it is a lot of work then don't worry, I will manage! Cool
Find all posts by this user
Quote this message in a reply
7th Apr, 2016, 02:35 AM
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: *** Feature Request ***
Already there Smile

Terminal

btrfs-auto-snapshot xbiancopy --img /dev/root /path-for image/imagename
Find all posts by this user
Quote this message in a reply
7th Apr, 2016, 03:45 AM
Post: #3
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: *** Feature Request ***
Ah, OK.

I meant from xbian-config, but that fits the bill too! Smile

Thank you!
Find all posts by this user
Quote this message in a reply
7th Apr, 2016, 03:51 AM
Post: #4
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: *** Feature Request ***
(7th Apr, 2016 03:45 AM)Skywatch Wrote:  I meant from xbian-config, but that fits the bill too! Smile

I know. xbian-config is calling btrfs-auto-snapshot Big Grin

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 Sad)
Find all posts by this user
Quote this message in a reply
7th Apr, 2016, 04:02 AM
Post: #5
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
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.
Find all posts by this user
Quote this message in a reply
7th Apr, 2016, 04:26 AM
Post: #6
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: *** Feature Request ***
Oh yes! - A cron job to auto backup once a week would be brill! Smile - Why didn't I think of that??? Heheheh......Wink
Find all posts by this user
Quote this message in a reply
7th Apr, 2016, 05:56 AM
Post: #7
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: *** Feature Request ***
95% of code is already there, but unfortunately could not find the rest of them Sad

/etc/cron.[daily|weekly]/xbian-[daily|weekly]-btrfs should be the right place for calling xbian-config

Have to ask @mk01
Find all posts by this user
Quote this message in a reply
9th Apr, 2016, 04:10 AM (This post was last modified: 9th Apr, 2016 04:11 AM by Nachteule.)
Post: #8
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
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! Smile - Why didn't I think of that??? Heheheh......Wink

Done Smile

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"
Find all posts by this user
Quote this message in a reply
9th Apr, 2016, 07:00 PM
Post: #9
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: *** Feature Request ***
Woah! - You da man !!! Smile

I'll have a go at this over the weekend!

Thank you Nachteule! Smile

OK, all set up now and will wait and see what happens! Wink

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? Wink
Find all posts by this user
Quote this message in a reply
9th Apr, 2016, 09:11 PM
Post: #10
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
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? Wink

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
Find all posts by this user
Quote this message in a reply
10th Apr, 2016, 03:29 AM
Post: #11
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: *** Feature Request ***
Aha! - Yes...now I see!

Very good!
Find all posts by this user
Quote this message in a reply
11th Apr, 2016, 04:40 AM
Post: #12
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
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.
Find all posts by this user
Quote this message in a reply
11th Apr, 2016, 07:51 PM
Post: #13
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
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! Smile

Great Stuff! Smile

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.
Find all posts by this user
Quote this message in a reply
11th Apr, 2016, 09:45 PM
Post: #14
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
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 Smile

This is part of the cron.daily,weekly,monthly procedure. To change execution time you only have to change time in /etc/crontab
Find all posts by this user
Quote this message in a reply
11th Apr, 2016, 09:55 PM
Post: #15
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: *** Feature Request ***
Thank you! - I was looking everywhere for that but couldn't find it! Blush

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!
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (3): 1 2 3 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 12:28 AM Powered By MyBB, © 2002-2025 MyBB Group.