Answer the question
In order to leave comments, you need to log in
Why are backups not being restored?
Good day.
There was a problem, and I really ask for help.
Essence.
There is a server with CentOS 6, on the basis of which postgres is spinning.
[[email protected] ~]# psql -V
psql (PostgreSQL) 9.4.2
/usr/pgsql-9.4/bin/pg_dump --host localhost --port 5432 --username "postgres" --role "postgres" --no-password --format custom --blobs --compress 9 --encoding UTF8 --verbose --file /mnt/NASbackup/Buh_UKEKNew/Buh_UKEKNew-$(date +%Y-%m-%d).backup "Buh_UKEKNew" 2> $LOG_FILE
pg_restore --host localhost --port 5432 --username "postgres" --dbname "Buh_sheregesh_31032021" --role "postgres" --no-password --clean --section pre-data --section data --section post-data --verbose "/root/Buh_sheregesh3-2021-03-31.backup"
WARNING: errors ignored on restore: 23685
You have mail in /var/spool/mail/root
Answer the question
In order to leave comments, you need to log in
I also stopped restoring backups.
1c 8.3 + Win serv 2008 + Postgres 9.6.7-1.1C Backups
were made with a script from the command line.
Previously, this sequence of actions worked. I created an empty Postgres database using 1s and restored it from the command line using pg_restore
But now, when restoring, errors began to appear and, as a result, like you did when entering 1s
XX000: ERROR: There are 2 candidates for 'mchar_pattern_fixed_prefix' function'
Everything worked with this sequence :
Created an empty database in PgAdmin3 1.22.2 with the template template0
And restored the database in PgAdmin itself. There were no mistakes.
Then I created a database with the same name in 1s and it all worked.
Fortunately, I have little experience with 1s, but I can say for sure that you screwed up. Backup is done as follows - we remove the image (preferably everything and everything), and then we pretend that the server room has exploded, along with the building. After that - we are trying to restore, if it was not possible - then there was never a backup.
Understand what each key in both of your commands means - in my opinion, even though I'm not familiar with the specifics of processed files for 1C postgres, about half of them are not needed.
Perhaps you should google some standard, generally recommended backup solutions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question