Koozali.org: home of the SME Server

affa vs backup pc vs dungog rsync backup

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #15 on: April 23, 2018, 11:45:23 AM »
well, if so:

- create a db dump (hint: mysqldump)
- create a compressed tar.gz file (hint1: tar, hint2: use YYYYMMDD_backup.tar.gz name)
- use scp to push files to your server and send an email when done.
- use google's client to push the file on remote gdrive and keep last N backup (optional: send an email when done; warning: gdrive doesn't erase deleted file, it's up to you)

TAH-DAH!!! :-D

Offline Bud

  • *
  • 487
  • +0/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #16 on: April 25, 2018, 05:33:54 AM »
ReetP, Stefano, thank you guys. really appreciated

in my " /usr/bin/ " folder i have two file links and one physical file
links " /usr/bin/unison, /usr/bin/unison-2.40 " and a " file " /usr/bin/unison-gtk-2.40 "

file link " /usr/bin/unison > /etc/alternatives/unison "
file link " /usr/bin/unison-2.40 > usr/bin/unison-gtk-2.40 "

the file link in " /etc/alternatives/unison " points to " /usr/bin/unison-gtk-2.40 "

not sure if my terminology makes sense

is this how it should be?

ReetP
" Scripts - wherever you choose " Where do you recommend i place the scripts in your opinion, create a scripts folder?

thanks again guys  :grin:
« Last Edit: April 25, 2018, 05:36:06 AM by Bud »

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #17 on: April 25, 2018, 10:46:01 AM »
You seem to have installed the graphical version.....

Should look like this:

[root@server ~]# rpm -qa |grep unison
unison240-text-2.40.102-5.el6.x86_64
unison240-2.40.102-5.el6.x86_64

Have a look, and remove the gtk version.....

Scripts - /usr/bin ? That's where the dehydrated scripts go.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Bud

  • *
  • 487
  • +0/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #18 on: April 25, 2018, 05:10:04 PM »
ReetP thank you for your input

this is what it shows
# rpm -qa |grep unison
unison240-2.40.102-5.el6.x86_64
unison240-gtk-2.40.102-5.el6.x86_64


when i do
# yum remove unison
unison is uninstalled

when i do
# yum --enablerepo=epel install unison240
it installs unison however when i again do
# rpm -qa |grep unison
unison240-2.40.102-5.el6.x86_64
unison240-gtk-2.40.102-5.el6.x86_64


how do i install " unison240-text-2.40.102-5.el6.x86_64 " ?

sorry for the noob questions  :-)

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #19 on: April 25, 2018, 05:20:53 PM »
Bud

You installed it already. Check with
rpm -q unison
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Bud

  • *
  • 487
  • +0/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #20 on: April 25, 2018, 06:32:28 PM »
janet thank you for your input

# yum --enablerepo=epel install unison240
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : unison240-2.40.102-5.el6.x86_64                                                                                                 1/2
  Installing : unison240-gtk-2.40.102-5.el6.x86_64                                                                                             2/2
  Verifying  : unison240-gtk-2.40.102-5.el6.x86_64                                                                                             1/2
  Verifying  : unison240-2.40.102-5.el6.x86_64                                                                                                 2/2

Installed:
  unison240.x86_64 0:2.40.102-5.el6

Dependency Installed:
  unison240-gtk.x86_64 0:2.40.102-5.el6
Complete!

# rpm -q unison
package unison is not installed

# rpm -qa |grep unison
unison240-2.40.102-5.el6.x86_64
unison240-gtk-2.40.102-5.el6.x86_64


so is that correct ?





Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #21 on: April 25, 2018, 07:05:35 PM »
No, you still have the graphical rpm installed as per my previous post.

I showed you how it should look when it you have it correctly installed. unison240-gtk is the graphical front end and you do not need it.

Remove unison240-gtk

Install unison240-text

You may have to do

Code: [Select]
yum remove unison240-gtk unison240
That will probably remove 'unison240'

Then do:

Code: [Select]
yum install unison240-text
That should automatically install 'unison240' again.

Once again, it should look like this when correct:

[root@server ~]# rpm -qa |grep unison
unison240-text-2.40.102-5.el6.x86_64
unison240-2.40.102-5.el6.x86_64
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Bud

  • *
  • 487
  • +0/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #22 on: April 26, 2018, 01:05:45 AM »
ReetP i seem yo be having a problem

# yum remove unison240-gtk unison240
Loaded plugins: fastestmirror, smeserver
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package unison240.x86_64 0:2.40.102-5.el6 will be erased
---> Package unison240-gtk.x86_64 0:2.40.102-5.el6 will be erased
--> Finished Dependency Resolution

unison was removed

# yum install unison240-text
Loaded plugins: fastestmirror, smeserver
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.is.co.za
 * smeaddons: mirror.canada.pialasse.com
 * smeextras: mirror.canada.pialasse.com
 * smeos: mirror.canada.pialasse.com
 * smeupdates: mirror.canada.pialasse.com
No package unison240-text available.

cannot seem to install the text version as it is not available

any ideas ?

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #23 on: April 26, 2018, 01:30:11 AM »
Bud

To check if the actual rpm you thought you wanted installed is actually installed do:
rpm -q unison240-text
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #24 on: April 26, 2018, 02:10:38 AM »
I was in a rush earlier.

Forgot --enablerepo=epel
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #25 on: April 27, 2018, 01:43:44 AM »
As a follow up on dungog-rsync I have just about got the web function panel working with updated code.

Now I have a vague idea of what I am doing I hope I can fix the other files more easily. I'll post on the bug once I have something running.

All a matter of personal time !!
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Bud

  • *
  • 487
  • +0/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #26 on: April 28, 2018, 01:40:45 PM »
ReetP thank you for the update

Looking forward to this

Offline Bud

  • *
  • 487
  • +0/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #27 on: May 23, 2018, 08:53:01 AM »
ReetP

when i do: # unison oneway_sync.prf
i get the following errors

Contacting server...
ssh: connect to host 192.0.0.99 port 22221: Connection refused
Fatal error: Lost connection with the server
Fatal error: exception Util.Fatal("Error in getLogch:
/var/log/unison/vps_sql.log: No such file or directory")

any ideas?  :-)

Offline sages

  • *
  • 182
  • +0/-0
    • http://www.sages.com.au
Re: affa vs backup pc vs dungog rsync backup
« Reply #28 on: May 23, 2018, 09:44:44 AM »
i get the following errors

Contacting server...
ssh: connect to host 192.0.0.99 port 22221: Connection refused
Seems like a clue ;)
It can't connect to the host. Have a look on the target logs and see if anything is there. Have a look and see if the target service is running. Is it listening on the specified port 22221. try and start an ssh connection to 192.0.0.99:22221 with an ssh client and see if you can get a connection to start.
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: affa vs backup pc vs dungog rsync backup
« Reply #29 on: May 23, 2018, 10:01:22 AM »
sages thank you for your to help

i can do # ssh 192.0.0.99
it then asks for username and password

when i do # ssh 192.0.0.99:22221
i get an error: ssh: Could not resolve hostname 192.0.0.99:22221: Name or service not known

what service do i need to start or install?

what to do?  :-)