Restore a specific file with Duplicity - command-line

I've been trying to restore a specific file with Duplicity on an Ubuntu Server 22.04 LTS for a few hours now, what happens is that when using the command duplicity restore file:///backup/drafts/draft2.txt recovery it gives me the following error:error.
I've tried everything and can't get it, thanks in advance.
I'm sorry if I've formulated something wrong, I'm new, any information you need I can provide without problem.
I have tried with all the Duplicity commands that I know and I have found.

Related

Exporting planet.osm.pbf into PostgreSql

could someone help with this? I found only this: http://wiki.openstreetmap.org/wiki/Osm2pgsql
and this:
http://learnosm.org/en/osm-data/osm2pgsql/ but
windows binary was removed, and I never use cygwin or linux bash.
Actually I've installed Postgresql with postgis, and downloaded planet.osm.pbf.
I need some advice how to proceed with Osm2pgsql, wich will be helpful for newbie. Thanks
I would suggest running a an Ubuntu Server (14.04 or 16.04) and following the instructions here:
https://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/
You can run this on a Virtualbox from your windows machine.
The reason I suggest this is that you will only make things more difficult for yourself trying to install on windows.
I myself was completely new to Linux before I installed my MapServer, and I found it really easy to follow.
Osmosis can also do imports of osm (pbf) file to postgres DB with postgis extension. http://wiki.openstreetmap.org/wiki/Osmosis

Startup Scripts on Google Compute Engine

My startup scripts stored in Cloud Storage no longer seem to execute on my Compute Engine instances.
I use the startup-script-url tag to pass in the shell script stored in Cloud Storage. None of my compute engine instances are executing the startup scripts. I'm using Ubuntu images and there is no /var/log/startupscript.log file. I'm providing the proper link to the shell script because if I run:
sudo /usr/share/google/run-startup-scripts
the instance starts executing the contents of my shell script. These same scripts worked on startup as of last Thursday (9/22) but now they don't. I haven't made any changes to my scripts in that time.
Any idea what is going on? The other questions I found pertaining to this were quite old and did not seem to have an accepted solution.
From the comments it looks like you've figured this out, but there was a problem in a recent update to Ubuntu 16.04 that broke startup scripts.
The problematic image was rolled-back, but updating packages will cause the problem to occur as well.
https://github.com/GoogleCloudPlatform/compute-image-packages/issues/342

PostgreSQL reinstall : Failed to load sql modules into the database cluster

I tried to re-install postgresql 9.5.3-1 on my windows 7 without success. In fact, at each attempt, I have the message:
failed to load sql modules into the database cluster
then, I get the message:
Error running post install step. Installation may not complete correctly. Error reading C:/Program Files/PostgreSQL/9.5/data/postgresql.conf
I tried several attempts to solve this issue
change the installation folder
switch to 32-bit
reboot
clean the register before reinstalling
install as a postgres user as describe here (Failed to load sql modules into the database cluster during PostgreSQL Installation)
PS: installation language is French
I finally found a solution to my problem. I just installed postgres as a super administrator
Had same problem. Just double check permission for your data folder. I set full control to authenticated users and it installs correctly.
Same problem here.
In my case it was a backslash \ at the end of the password.
See also https://stackoverflow.com/a/32146553/2443630

Change PostgreSQL data_directory on CentOS 7

I'm trying to change the default data_directory of PostgreSQL on CentOS 7 however without much success. I've an experience of successful change on Ubuntu, using the following manual:
http://climber2002.github.io/blog/2015/02/07/install-and-configure-postgresql-on-ubuntu-14-dot-04/
However I'm not able to do that on CentOS, the directories are different, can't find how to call initdb to create the new cluster, move the existing DB files to the new directory, etc.
Can anybody advise on this? Didn't find anything useful on this either.
Thanks.

back up services on centos and restor it on another clean centos

i'm going straight to question..
is there any way to backup services configured on a Centos without system file of centos?
for example I want to back up OpenVP-n config and then restore it to another clean centos and just changing a few files..
or even back up a full Direct admin config and then restore it in another clean centos OS?
i don't want back up the whole centos..just i want backup configs on it..
I search out about this alot..but i didn't find anything working..please share your experience about this..
Is this even possible?
any help...?