Author Topic: Latest Software Version  (Read 15554 times)

Admin

Re: Latest Software Version
« Reply #30 on: September 10, 2018, 07:48:08 pm »
Frank, it will be lost if the changes are either in
/etc, or /var

in order to maintain these changes you will need to copy the relevant modified files from

/etc/xxxx to /etc_org/xxxx and
/var/xxxx to /var_org/xxxx

Thx
Lee

PaulRuskin

Re: Latest Software Version
« Reply #31 on: September 11, 2018, 09:24:47 am »
You can copy the relevant files like this (useful if you're not exactly sure what has been changed).:

sudo /root/mount_rw.bash
(cd /etc_rw; sudo tar -c  *) | (cd /etc_org; sudo tar -x --overwrite)
(cd /var_rw; sudo tar -c  *) | (cd /var_org; sudo tar -x --overwrite)
sudo /root/mount_ro.bash

Paul

Ian Melville

Re: Latest Software Version
« Reply #32 on: September 11, 2018, 12:04:31 pm »
PaulR
Can you just start that config again in works of one sylable  :-\

Though I am learning bits and bobs Linux is still a black box to me.

Paul_Sengupta

Re: Latest Software Version
« Reply #33 on: September 11, 2018, 06:24:00 pm »
From what I can see, "tar -c *" compacts all your files in that directory into one file. It then gets piped to the other directory where the files are expanded again, overwriting what's there.

It's just another way of doing things, you can edit them in the _rw directory and copy them all into the _org directory.

Alternatively you could just edit them in the _org directory!  ;D

Is that right?

Admin

Re: Latest Software Version
« Reply #34 on: September 11, 2018, 07:15:30 pm »
From what I can see, "tar -c *" compacts all your files in that directory into one file. It then gets piped to the other directory where the files are expanded again, overwriting what's there.

It's just another way of doing things, you can edit them in the _rw directory and copy them all into the _org directory.

Alternatively you could just edit them in the _org directory!  ;D

Is that right?

That is correct
any modified files go into the _rw/ directory, so Paul has given a neat shortcut to say
take all modified files in the non-persistent directory, and copy them into the persistent directories

- you will all be Linux Gurus before Christmas!
Thx
Lee

AlanG

Re: Latest Software Version
« Reply #35 on: September 11, 2018, 07:54:45 pm »
Ahh, but which Christmas???????? >:(

Although i did manage to set up my 360Radar server first time.  ;D

trident

Re: Latest Software Version
« Reply #36 on: September 14, 2018, 08:56:22 pm »
Thanks Lee and all for the info.

I'll give it a try as soon as I get a chance and report back here how it goes.

Thanks,

Frank.