use back in time via command line

Asked by Reeta

hello everyone,
 i want to download, install and run or start "back in time" from the command line.
   Is there any way to do that?? what are commands for that?
please help me.... urgent..!
 Thanks in advance..

Question information

Language:
English Edit question
Status:
Solved
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Solved by:
Reeta
Solved:
Last query:
Last reply:
Revision history for this message
Germar (germar) said :
#1

Hi Reeta,

this depends very much on the distribution you use. If you're on Debian/Ubuntu you can install Back in Time with 'sudo apt-get install backintime-common'. If you use any other distri please let me know and I'll try to help.

To run Back In Time on a headless machine (only command line, no graphic user interface) you need to create the config file in ~/.config/backintime/config manually. Take a look at 'man backintime-config' for this. There are also examples in /usr/share/doc/backintime-common/examples/

Regards,
Germar

Revision history for this message
Reeta (rs-3) said :
#2

thank you so much for the help..

  i am using linux Centos 6
i have download "back in time" from command line:
wget http://backintime.le-web.org/downloa...e-1.1.0.tar.gz

and for installation i used: tar -xzvf backintime-1.1.0.tar.gz
cd backintime-1.1.0/common
./configure
make
make install

After this i wrote command to run : backintime
 it gives an error...
   File "/usr/share/backintime/common/backintime.py", line 163
    file=sys.stderr)
        ^
SyntaxError: invalid syntax

    i dont want to use GUI ( graphic user interface).. . can be possible with the command lines to run or start "back in time" ?? without GUI..
i dont know how to run this..??? can you tell me the whole procedure? actually i am confused...:(

thanks...

Revision history for this message
Germar (germar) said :
#3

Looks like you're using Python version 2.x
BIT >= 1.1.0 now requires Python 3.x. Please make sure Python 3 is installed and find out which command is used on Centos to start Python in version 3 ('python' or 'python3'). This can be given as argument to './configure --python' or './configure --python3'

Also please download the current version 1.1.2 from http://backintime.le-web.org/download/backintime/backintime-1.1.2.tar.gz

You don't need to use GUI. Most functions can be done from CLI, too. But you need to create the config and crontab entry manually. This is documented in 'man backintime-config'.

To start a new snapshot from command line you use 'backintime --backup' and to restore 'backintime --restore'.

Revision history for this message
Reeta (rs-3) said :
#4

hey,
  download and install Python 3 from the command line:

 wget http://www.python.org/ftp/python/3.3.2/Python-3.3.2.tar.bz2 -O /var/tmp/Python-3.3.2.tar.xz

tar xf Python-3.3.2.tar.xz
cd Python-3.3.2/
./configure
make
make install

After that i wrote "which python3 " in command line
    it gives:
                  /usr/local/bin/python3
then " python3 --version"
  it gives:
               Python 3.3.2
then "python -V"
 it gives:
              Python 2.6.6

Instead of "Python 2.6.6" it should give Python 3.3.2 na...????

i wrote command "backintime" or "backintime --backup" or "backintime --restore" on command line..

 it gives same ...
           File "/usr/share/backintime/common/backintime.py", line 23, in <module>
    import config
  File "/usr/share/backintime/common/config.py", line 32, in <module>
    import tools
  File "/usr/share/backintime/common/tools.py", line 25, in <module>
    import dbus
ImportError: No module named 'dbus'

how to start back in time from command line?

Revision history for this message
Reeta (rs-3) said :
#5

Hey, Germar

problem almost solved.. today i tried tried a lott...

 again i downloaded backintime-common and backintime-gnome from the command line

then i installed repository through command line: yum install epel-release
  to verify: yum repolist

then installed both backintime-common and backintime-gnome from the command line:

     yum install backintime-common backintime-gnome

and finally i wrote "backintime-gnome" on command line . It gives an output , automatically GUI opened...:)..:)

still i have a problem... :(

 i cannot work on GUI of backintime.. i am searching commands for this. so it can be possible to work on backintime WITHOUT GUI ?????

Thank you so much for the help or reply... i learned a lot..:)

Revision history for this message
Germar (germar) said :
#6

Okay. So you now use an older version from a repository which is still using Python2. That's fine. BTW current version with manually installed Python3 didn't work because you were missing some dependencies which would have to be installed manually, too.

But you didn't need to install nor run backintime-gnome as this IS the GUI. If you only want command line you only need to install backintime-common and run backintime.

I'm not sure which version there is in Centos repositories. Restore option from command line was added in version 1.0.26. So if you're on an older release you probably need to restore manually.

Revision history for this message
Reeta (rs-3) said :
#7

hey,

 I got it, was an repository issue... thank u so much for ur help.
  After download "backintime-common"

i wrote command for repository : yum install epel-release

                                                                  yum repolist

yum install backintime-common
Okay done... i need only backintime-common bcoz i want to handle from command line only

 All commands are there..

http://backintime.le-web.org/documentation/getting-started/

Thank u Germar..:)