I
I
Ivan Lazarenko2020-01-18 20:56:06
linux
Ivan Lazarenko, 2020-01-18 20:56:06

backuppc. How to correctly specify the backup storage path?

Good day, dear ones!
Tell me, please:
deployed a backup server on Linux Mint 17. Plugged in BackUPPC.
Everything is set up and it seems to be beautiful.
But there is no space for backups on the disk where BackUpPC is installed.
To store copies, a separate 2TB hdd was added. And I need backup copies to be placed in a folder on it.
I know that there are two configuration files that BackUPPC uses.
Main - config.pl
and additional - srv05.pl - with the name of my host, which I will reserve.
I made it myself, after reading in the documentation that if I want to set up a reservation for a specific host separately, I can do it. Actually, backUpPC writes data there and does not take a steam bath.
Having smoked the forums, I understand that the setting should be written exactly in srv05.pl
Of course, the main parameters are stored in config.pl, but the documentation states that you should not change TopDir (the parameter responsible for the backup storage path). But there is an indication of the use of a certain symbolic link.
I understand that TopDir cannot be changed and I don't know how to apply, in this case, a symlink. In addition, I know that a separate configuration file is created for a specific host, in which you CAN specify the path to the location where the files are stored:
And the question is:
What should I write in srv05.pl to specify the location where the host's backup files are stored?
HOW to specify it correctly? What is the command and its format?
Who will tell?
PS I did not find an explicit comment on this matter in the documentation.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Lazarenko, 2020-01-30
@Stone7

Thanks to Pavel Mezhuev, and user LeNiN from www.linux.org.ru.
There is a solution:
creating a symbolic link - https://www.linux.org.ru/forum/general/15490788?ci...
- sudo chown -R backuppc:backuppc /media/adminka/backup2tb/backuppc/
- sudo service backuppc stop
- sudo ps -eF|grep "backupp[c]"
- sudo mv /var/lib/backuppc /var/lib/backuppc.BAK
- sudo ln -s /media/adminka/backup2tb/backuppc/ /var/lib/ backuppс
But after launch it gave an error.
- sudo service backuppc start
* Starting backuppc... 2020-01-27 16:14:20 Can't create a test hardlink between a file in /var/lib/backuppc/pc and /var/lib/backuppc/cpool. Either these are different file systems, or this file system doesn't support hardlinks, or these directories don't exist, or there is a permissions problem, or the file system is out of inodes or full. Use df, df -i, and ls -ld to check each of these possibilities. Quitting...
First: when creating a folder, on the disk where the backup was supposed to go, I don’t know how, but the Russian letter “s” was present in the name.
Second: after executing the commands, there was a check for the correctness of mounting the disk. mount point added to /etc/fstab for /dev/sda1 (server backup disk). You can do the same through the "Disks" graphical interface, specify /var/lib/backuppc in the Mount point field

P
Pavel Mezhuev, 2020-01-18
@mezhuev

Backups are stored in the path specified in $Conf{TopDir}. See the documentation for details . This setting refers to the general configuration of the server and cannot be overridden for a specific host via host.pl.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question