Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351268 - backintime can't find snapshots folder
Summary: backintime can't find snapshots folder
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 03:33 UTC by Benjamin Schulz
Modified: 2011-01-10 13:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schulz 2011-01-10 03:33:21 UTC
I have configured backintime with /root/.config/backintime/config.

I backup on an external usb drive. 

If I run backintime as root with backintime --backup-job then backintime creates a snapshot as it should.

However, in case backintime is called from anacron or cron, then it logs 

2011-01-10 04:27:58	Tux1	backintime (unknown)	INFO: Lock
2011-01-10 04:27:58	Tux1	backintime (unknown)	INFO: on process begins
2011-01-10 04:27:58	Tux1	backintime (unknown)	INFO: Profile_id: 1
2011-01-10 04:27:58	Tux1	backintime (unknown)	WARNING: Can't find snapshots folder !
2011-01-10 04:28:00	Tux1	backintime (unknown)	INFO: Unlock
 

I have not found any solution to this problem yet.

Reproducible: Always
Comment 1 Benjamin Schulz 2011-01-10 03:44:08 UTC
my crontab contains the line:

0 0 * * * nice -n 19 ionice -c2 -n7 /usr/bin/backintime --profile "Hauptprofil" --backup-job >/dev/null 2>&1

if I run those commands manually, they work. If those commands are run from the system, e.g. anacron, they won't work.


Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-01-10 05:21:25 UTC
What user are the scripts being run as? I'd expect it not to be root. Perhaps all you need is to move the config file to a dir the "cron" user can read and pass it as a parameter in the cron entry.
Comment 3 Benjamin Schulz 2011-01-10 11:09:44 UTC
One strange thing is, that after I switched my configuration from vixie-cron and anacron to fcron now, backintime  apparently is successfully called by fcron and runs.

Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-01-10 13:18:31 UTC
If you can reproduce this again, feel free to reopen the bug.