|
From: | Yusif Suleiman |
Subject: | Re: [Health] Restore data to new installation |
Date: | Mon, 9 May 2022 08:07:13 +0000 |
Thank you, Gerald.
I check the files with 'ls' command, all files are in the directory.
I use the 'psql newdb' then copy the syntax one after the other, but all in vain.
Here are my repeated efforts. Please have look at. What have I miss?
user@localhost:~/Desktop> su
Password:
localhost:/home/user/Desktop # su postgres
postgres@localhost:/home/user/Desktop> ls
backup_Fitrah_2022-04-18_143018
backup_Fitrah_DB_2022-04-18_143054.gz
gnuhealth_Fitrah_DB_fs_backup_2022-04-18_143054.tar.gz
gnuhealth_Fitrah_DB_with_fs_backup_2022-04-18_143054.tar
postgres@localhost:/home/user/Desktop> createdb newdb --encoding='UTF-8' --owner=tryton
createdb: error: database creation failed: ERROR: database "newdb" already exists
postgres@localhost:/home/user/Desktop> psql newdb gnuhealth_Fitrah_DB_with_fs_backup_2022-04-18_143054.tar
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "gnuhealth_Fitrah_DB_with_fs_backup_2022-04-18_143054.tar" does not exist
postgres@localhost:/home/user/Desktop> psql newdb gnuhealth_Fitrah_DB_fs_backup_2022-04-18_143054.tar.gz
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "gnuhealth_Fitrah_DB_fs_backup_2022-04-18_143054.tar.gz" does not exist
postgres@localhost:/home/user/Desktop> psql newdb gnuhealth_Fitrah_DB_fs_backup_2022-04-18_143054
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "gnuhealth_Fitrah_DB_fs_backup_2022-04-18_143054" does not exist
postgres@localhost:/home/user/Desktop> psql newdb backup_Fitrah_DB_2022-04-18_143054.gz
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "backup_Fitrah_DB_2022-04-18_143054.gz" does not exist
postgres@localhost:/home/user/Desktop> psql newdb backup_Fitrah_DB_2022-04-18_143054
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "backup_Fitrah_DB_2022-04-18_143054" does not exist
From: Health <health-bounces+yusifsuleiman=hotmail.com@gnu.org> on behalf of Gerald Wiese <wiese@gnuhealth.org>
Sent: Saturday, May 7, 2022 12:49 PM To: health@gnu.org <health@gnu.org> Subject: Re: [Health] Restore data to new installation Hey Yusuf, as the message says your backup file is not found. Check your files in current working directory by typing "ls" to see if it is there. Did you copy it to your machine where you want to restore? Anyway don't leave the "<". Best Gerald
On 5/7/22 12:30, Yusif Suleiman wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |