sbackups fails over ssh and sftp as root under linux mint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sbackup |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
I am having trouble setting up sbackup in Linux Mint 17.1 MATE 64-bit to do scheduled backups as root over ssh or sftp. A local backup was created just fine. I have done sudo ssh <username>@<remove> so the host is known. Also, according to the log files, sbackup is able to create, write, read and remove the test file succesfully. However, it has trouble with full and incremental backups. The increment was tested against an earlier backup from Ubuntu 10.04 with some sbackup version.
First, setting "ssh" as "Type of service" in remote site gives "Location is not mountable" and refuses to stick with ssh, while setting "sftp" gives a tick next to the address. Therefore I used sftp.
There seems to be a problem in function "openfile_
<code>
@classmethod
def openfile_
_gfileobj = gio.File(path)
#FIXME: etag should be set to None though it doesn't work then!
_etag = ''
try:
_etag = _gfileobj.
except gio.Error, error:
_logger = log.LogFactory.
_etag = '' # Should be None
_ostr = '' # this can not be written to, so the next write will raise an exception
try:
# use "flags = gio.FILE_
#_ostr = _gfileobj.
_ostr = _gfileobj.
except gio.Error, error:
_logger = log.LogFactory.
_msg = get_gio_
return _ostr
</code>
In short, the first file to be written by "commit" in "sbackup/
The first log shows this for "flags = gio.FILE_
The sbackup version is:
$ sbackup --version
sbackup 0.11.6
2015-01-27 12:56:00,738 - WARNING: Unable to remove lock file: File not found.
Best Regards,
Risto
Workaround:
(1) Use sshfs manually to mount your remote backup location as a local directory.
(2) Add an exception for the local directory, so it will not backup itself recursively.
(3) Use local backup.
I had trouble with step (3) as root, but it worked as a regular user. In this case:
(4) Set up crod to do scheduled backups.