Official Xtreamer Forums: rdiff-backup package discussion - Official Xtreamer Forums

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • This topic is locked

rdiff-backup package discussion A remote incremental backup of all your files

#21 User is offline   epox 

  • Member
  • Group: Members
  • Posts: 139
  • Joined: 10-January 10
  • City:Glasgow
  • Country:Scotland

Posted 25 August 2010 - 18:21

putty

no not working

not sure about line 2?

Last login: Wed Aug 25 18:05:25 IST 2010 from 192.168.1.3 on pts/1
[1:~]$ test /usr/bin/vi || ln -s /bin/vi /usr/bin/vi
[2:~]$ crontab -eu root
no crontab for root - using an empty one
/bin/sh: /usr/bin/vi: No such file or directory
crontab: "/usr/bin/vi" exited with status 127
[3:~]$ 15 19 * * * /usr/bin/rdiff-backup.sh >/dev/null 2>&1
[4:~]$ : wq


mark :? :?

ps usb drive connected
Xtreamer Mk1, eTRAYz and Ultra
0

#22 User is offline   sebek72 

  • Member
  • Group: Members
  • Posts: 85
  • Joined: 22-October 09
  • City:Maribor
  • Country:Slovenia

Posted 25 August 2010 - 18:51

THJ rdiff-backup works like a charm...but it takes a very very very long time :)
0

#23 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 25 August 2010 - 18:53

View Postepox, on 25 August 2010 - 18:21, said:

putty

no not working

not sure about line 2?

Last login: Wed Aug 25 18:05:25 IST 2010 from 192.168.1.3 on pts/1
[1:~]$ test /usr/bin/vi || ln -s /bin/vi /usr/bin/vi
[2:~]$ crontab -eu root
no crontab for root - using an empty one
/bin/sh: /usr/bin/vi: No such file or directory
crontab: "/usr/bin/vi" exited with status 127
[3:~]$ 15 19 * * * /usr/bin/rdiff-backup.sh >/dev/null 2>&1
[4:~]$ : wq


mark :? :?

ps usb drive connected


Check instructions in first post again. I edited the command that makes symbolic links in order for crontab editing to work.

View Postsebek72, on 25 August 2010 - 18:51, said:

THJ rdiff-backup works like a charm...but it takes a very very very long time :)


Excelent. But I can't do much about speed. Probably CPU is too slow.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#24 User is offline   epox 

  • Member
  • Group: Members
  • Posts: 139
  • Joined: 10-January 10
  • City:Glasgow
  • Country:Scotland

Posted 26 August 2010 - 18:36

me again :(

using the code in lines 1 and 2, rdiff backs up to folder on usb with no problem.

i still cant get it to auto back up using

if [ ! -e /usr/bin/vi ]; then ln -s /bin/vi /usr/bin/vi; fi
crontab -eu root
31 19 * * * /usr/bin/rdiff-backup.sh >/dev/null 2>&1

is this still a problem with version 1.05?

working !!!!


login as: root
Using keyboard-interactive authentication.
Password:
Last login: Thu Aug 26 19:21:21 IST 2010 from 192.168.1.3 on pts/1
[1:~]$ export PYTHONHOME=/usr
[2:~]$ rdiff-backup.sh
Executing /usr/bin/rdiff-backup.sh
Fatal Error: Bad directory /External/USB2/part1/123.
It doesn't appear to be an rdiff-backup destination dir
Using rdiff-backup version 1.2.8
Unable to import module xattr.
Extended attributes not supported on filesystem at /home/Public
Unable to import module posix1e from pylibacl package.
POSIX ACLs not supported on filesystem at /home/Public
Unable to import win32security module. Windows ACLs
not supported by filesystem at /home/Public
escape_dos_devices not required by filesystem at /home/Public
-----------------------------------------------------------------
Detected abilities for source (read only) file system:
Access control lists Off
Extended attributes Off
Windows access control lists Off
Case sensitivity On
Escape DOS devices Off
Escape trailing spaces Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
-----------------------------------------------------------------
Unable to import module xattr.
Extended attributes not supported on filesystem at /External/USB2/part1/123/rdiff-backup-data/rdiff-backup.tmp.0
Unable to import module posix1e from pylibacl package.
POSIX ACLs not supported on filesystem at /External/USB2/part1/123/rdiff-backup-data/rdiff-backup.tmp.0
Unable to import win32security module. Windows ACLs
not supported by filesystem at /External/USB2/part1/123/rdiff-backup-data/rdiff-backup.tmp.0
escape_dos_devices not required by filesystem at /External/USB2/part1/123/rdiff-backup-data/rdiff-backup.tmp.0
-----------------------------------------------------------------
Detected abilities for destination (read/write) file system:
Ownership changing On
Hard linking On
fsync() directories On
Directory inc permissions Off
High-bit permissions On
Symlink permissions Off
Extended filenames On
Windows reserved filenames Off
Access control lists Off
Extended attributes Off
Windows access control lists Off
Case sensitivity On
Escape DOS devices Off
Escape trailing spaces Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
-----------------------------------------------------------------
Backup: must_escape_dos_devices = 0
Starting mirror /home/Public to /External/USB2/part1/123
Processing changed file .
Processing changed file .xjb-drive-id
Processing changed file Movies
Processing changed file Movies/A Boy Called Dad (2009) (Dvdrip)
Processing changed file Movies/A Boy Called Dad (2009) (Dvdrip)/a.boy.called.dad-taste.avi

regards Mark
Xtreamer Mk1, eTRAYz and Ultra
0

#25 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 26 August 2010 - 21:10

So now its OK?
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#26 User is offline   epox 

  • Member
  • Group: Members
  • Posts: 139
  • Joined: 10-January 10
  • City:Glasgow
  • Country:Scotland

Posted 27 August 2010 - 11:53

No

only backs up manualy using

[1:~]$ export PYTHONHOME=/usr
[2:~]$ rdiff-backup.sh


cant get auto back up to work using (i now to change 31 19 * * *)to time required

if [ ! -e /usr/bin/vi ]; then ln -s /bin/vi /usr/bin/vi; fi
crontab -eu root
31 19 * * * /usr/bin/rdiff-backup.sh >/dev/null 2>&1

wont work :(
Xtreamer Mk1, eTRAYz and Ultra
0

#27 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 27 August 2010 - 11:59

You need to get familliar with vi console editor.

To start editing inside it you need to press i key first.

Then in new line paste the command line. And then save with key combination :wq.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#28 User is offline   epox 

  • Member
  • Group: Members
  • Posts: 139
  • Joined: 10-January 10
  • City:Glasgow
  • Country:Scotland

Posted 27 August 2010 - 12:09

View PostTheHijacker, on 27 August 2010 - 11:59, said:

You need to get familliar with vi console editor.

To start editing inside it you need to press i key first.

Then in new line paste the command line. And then save with key combination :wq.



may be thats the problem
ive been copying into putty>?
Xtreamer Mk1, eTRAYz and Ultra
0

#29 User is offline   epox 

  • Member
  • Group: Members
  • Posts: 139
  • Joined: 10-January 10
  • City:Glasgow
  • Country:Scotland

Posted 27 August 2010 - 16:25

o well

time to give up trying to get this to work

:-( :-(
Xtreamer Mk1, eTRAYz and Ultra
0

#30 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 27 August 2010 - 17:06

Find me in chat.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#31 User is offline   sebek72 

  • Member
  • Group: Members
  • Posts: 85
  • Joined: 22-October 09
  • City:Maribor
  • Country:Slovenia

Posted 29 August 2010 - 20:31

I've tried backup from Windows comuper to Etrayz following your instructions.
Works like a charm...rdiff-backup is the best linux backup tool for me (but can also be used on windows clients)...


You can also do restore with command:

#              3days     backup source           restore point
rdiff-backup -r 3D /home/Public/backup/somefile /home/Public/restore


For more command read the manual. http://rdiff-backup....f-backup.1.html
0

#32 User is offline   epox 

  • Member
  • Group: Members
  • Posts: 139
  • Joined: 10-January 10
  • City:Glasgow
  • Country:Scotland

Posted 02 September 2010 - 18:35

Back again and still trying

ok if i type this into putty it backs up to external usb with out any problems.

export PYTHONHOME=/usr
rdiff-backup.sh

however crontab will not run using this

[1:~]$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXwT6Jgr installed on Thu Sep 2 19:26:54 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
30 19 * * * export PYTHONHOME=/usr
30 19 * * * rdiff-backup.sh


any help please

have also tried :(

30 19 * * * /export PYTHONHOME=/usr
30 19 * * */rdiff-backup.sh

thanks mark
Xtreamer Mk1, eTRAYz and Ultra
0

#33 User is offline   vpeter 

  • Developer and Modder
  • View blog
  • Group: Moderators
  • Posts: 3131
  • Joined: 09-October 09
  • City:basement
  • Country:Slovenia

Posted 02 September 2010 - 18:45

 cron doesn't work like that. You have to make one new script file with this 2 lines, or add export call to start of rdiff-backup.sh script or maybe use in crontab like
30 19 * * * PYTHONHOME=/usr /PATH_TO/rdiff-backup.sh

ShairPort emulates AirPort Express to receive AirPlay audio streams
Please vote for coreboot support on Xtreamer Ultra - coreboot replaces the proprietary BIOS with much faster one - would be great with OpenELEC -- seems this will newer happen
Projects: BBC iPlayer , SVTPlay, my OpenELEC version
normal user, software developer and integrator
You can support my work with paypal donation


#34 User is offline   epox 

  • Member
  • Group: Members
  • Posts: 139
  • Joined: 10-January 10
  • City:Glasgow
  • Country:Scotland

Posted 02 September 2010 - 20:46

thanks vpeter got me going in thr right direction :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes:

42 21 * * * /usr/bin/rdiff-backup.sh export PYTHONHOME=/usr

works a treat with 1.05 firmware. :lol: :lol: :lol: :lol: :lol:

ALL the BEST

Mark

This post has been edited by epox: 02 September 2010 - 20:47

Xtreamer Mk1, eTRAYz and Ultra
0

#35 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 03 September 2010 - 04:56

Change it to:

30 19 * * * PYTHONHOME=/usr /usr/bin/rdiff-backup.sh >/dev/null 2>&1


This whay he will not try to send email when script is finished to root user on eTRAYz.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#36 User is offline   epox 

  • Member
  • Group: Members
  • Posts: 139
  • Joined: 10-January 10
  • City:Glasgow
  • Country:Scotland

Posted 03 September 2010 - 07:26

hi
its a strange one putting the python line in first wont run the job.

got to put the rdiff first in the line.

strange but then im not used to code

also only seems to work when connected to the bottom usb port on etrayz.(ps fresh install of firmware 1.05)

so i will put the email code after python and see if it works.


thanks :grin:

This post has been edited by epox: 03 September 2010 - 14:00

Xtreamer Mk1, eTRAYz and Ultra
0

#37 User is offline   tomsowerby 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 17-March 10
  • City:Luga
  • Country:Malta

Posted 09 September 2010 - 07:11

I'm having trouble running the cron tab too.
Edited it fine and went back to check. still contains the line that I added:
05 09 * * * PYTHONHOME=/usr /usr/bin/rdiff-backup.sh >/dev/null 2>&1


I can run the rdiff process fine via command line from /home/sysadmin/.rdiff-backup/rdiff-backup.sh (after running 'export PYTHONHOME=/usr') and it begins backing things up.

Should it be this path that I include in the crontab rather than usr/bin/rdiff-backup.sh ?
0

#38 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 09 September 2010 - 07:34

Proper path is:

/usr/bin/rdiff-backup.sh

Or wait until fw 1.0.6 is released. Python bug will be fixed inside it.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#39 User is offline   vpeter 

  • Developer and Modder
  • View blog
  • Group: Moderators
  • Posts: 3131
  • Joined: 09-October 09
  • City:basement
  • Country:Slovenia

Posted 09 September 2010 - 09:43

 Few days back I need to backup only few subfolders from a folder which contains some other folders too. I include directive with folders to backup and exclude directive which exclude everything. Maybe useful for someone else. Now I need to make something similar for rdiff too because using both of them.

SOURCE="/updir"
INCLUDE="--include /updir/dir1 --include /updir/dir2"
$RDIFF $INCLUDE --exclude '**' $COMMON_OPTIONS $SOURCE $DESTINATION

ShairPort emulates AirPort Express to receive AirPlay audio streams
Please vote for coreboot support on Xtreamer Ultra - coreboot replaces the proprietary BIOS with much faster one - would be great with OpenELEC -- seems this will newer happen
Projects: BBC iPlayer , SVTPlay, my OpenELEC version
normal user, software developer and integrator
You can support my work with paypal donation


#40 User is offline   epox 

  • Member
  • Group: Members
  • Posts: 139
  • Joined: 10-January 10
  • City:Glasgow
  • Country:Scotland

Posted 09 September 2010 - 18:48

python still not fixed in 1.06
still have to run
export PYTHONHOME=/usr
rdiff-backup.sh

mark
Xtreamer Mk1, eTRAYz and Ultra
0

Share this topic:


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users