Package Details: backintime 1.4.3-2

Git Clone URL: https://aur.archlinux.org/backintime.git (read-only, click to copy)
Package Base: backintime
Description: Simple backup system inspired from the Flyback Project and TimeVault. Qt5 GUI version.
Upstream URL: https://github.com/bit-team/backintime
Licenses: GPL
Submitter: None
Maintainer: graysky
Last Packager: graysky
Votes: 296
Popularity: 0.173619
First Submitted: 2009-01-09 20:46 (UTC)
Last Updated: 2024-02-03 12:23 (UTC)

Dependencies (18)

Required by (1)

Sources (2)

Pinned Comments

graysky commented on 2023-10-07 12:15 (UTC)

Using an AUR helper such as yay to build packages including backintime is HIGHLY discouraged. The recommended build method is to use a clean chroot. See: https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

I wrote a script that automates much of that called clean-chroot-manager offered here in the AUR.

Please stop posting build failures because you insist on building with yay or other AUR helpers.

Latest Comments

« First ‹ Previous 1 .. 6 7 8 9 10 11 12 13 14 15 16 .. 71 Next › Last »

graysky commented on 2023-01-05 14:45 (UTC)

@scaramanga - are you building with makepkg or some aur unhelper?

scaramanga commented on 2023-01-04 15:20 (UTC)

Getting an error when installing the latest version 1.3.3-2:

FAIL: test_local_snapshot_is_successful (test.test_backintime.TestBackInTime)
end to end test - from BIT initialization through snapshot
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/myuser/.cache/paru/clone/backintime/src/backintime-8495f9dc3953343a0352bb3ffbdcfab7f93c10ad/common/test/test_backintime.py", line 147, in test_local_snapshot_is_successful
    self.assertRegex(filtered_log_output, re.compile(r'''INFO: Lock
AssertionError: Regex didn't match: 'INFO: Lock\nINFO: Take a new snapshot. Profile: 1 Main profile\nINFO: Call rsync to take the snapshot\nINFO: Save config file\nINFO: Save permissions\nINFO: Create info file\nINFO: Unlock\n' not found in 'INFO: Lock\nINFO: Take a new snapshot. Profile: 1 Main profile\nINFO: Call rsync to take the snapshot\nINFO: Save config file\nINFO: Save permissions\nINFO: Create info file\nQPainter::begin: Paint device returned engine == 0, type: 2\nQWidget::render: Cannot render with an inactive painter\nINFO: Unlock\n'

----------------------------------------------------------------------
Ran 3 tests in 2.518s

FAILED (failures=1, skipped=1)
make: *** [Makefile:570: unittest] Error 1
==> ERROR: A failure occurred in check().

dev_aryoda commented on 2022-12-18 21:53 (UTC)

@graysky THX for your quick response. Looks good!

WARNING: Failed to read process stat from /proc/2493732/stat: [2] No such file or directory

This annoying warning is on my TODO list (but with lower prio ATM since the debian freeze date is coming soon)

graysky commented on 2022-12-18 21:43 (UTC)

@dev_aryoda - if I build https://github.com/bit-team/backintime/commit/3a56a4cf5ad6185b7d44d5a65ee1c07ae1ef6610 using this PKGBUILD, I see not errors with tests.

==> Starting check()...
python -m unittest  -b test/test_applicationinstance.py
...................
----------------------------------------------------------------------
Ran 19 tests in 0.025s

OK
python -m unittest  -b test/test_argparser.py
.....................
----------------------------------------------------------------------
Ran 21 tests in 1.513s

OK
python -m unittest  -b test/test_backintime.py
..s
----------------------------------------------------------------------
Ran 3 tests in 2.784s

OK (skipped=1)
python -m unittest  -b test/test_backup.py
WARNING: Failed to read process stat from /proc/2493647/stat: [2] No such file or directory
............
----------------------------------------------------------------------
Ran 12 tests in 0.239s

OK
/usr/lib/python3.10/subprocess.py:1072: ResourceWarning: subprocess 2493680 is still running
/usr/lib/python3.10/subprocess.py:1072: ResourceWarning: subprocess 2493867 is still running
python -m unittest  -b test/test_config.py
WARNING: Failed to read process stat from /proc/2493732/stat: [2] No such file or directory
WARNING: Failed to read process stat from /proc/2493735/stat: [2] No such file or directory
WARNING: Failed to read process stat from /proc/2493745/stat: [2] No such file or directory
WARNING: Failed to read process stat from /proc/2493759/stat: [2] No such file or directory
WARNING: Failed to read process stat from /proc/2493760/stat: [2] No such file or directory
WARNING: Failed to read process stat from /proc/2493774/stat: [2] No such file or directory
WARNING: Failed to read process stat from /proc/2494244/stat: [2] No such file or directory
WARNING: Failed to read process stat from /proc/2494246/stat: [2] No such file or directory
WARNING: Failed to read process stat from /proc/2494251/stat: [2] No such file or directory
WARNING: Failed to read process stat from /proc/2494285/stat: [2] No such file or directory
...........
----------------------------------------------------------------------
Ran 11 tests in 0.018s

OK
python -m unittest  -b test/test_configfile.py
......................................................
----------------------------------------------------------------------
Ran 54 tests in 0.004s

OK
python -m unittest  -b test/test_diagnostics.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.084s

OK
python -m unittest  -b test/test_encfstools.py
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
python -m unittest  -b test/test_restore.py
.........ss
----------------------------------------------------------------------
Ran 11 tests in 1.205s

OK (skipped=2)
python -m unittest  -b test/test_sid.py
...........................................
----------------------------------------------------------------------
Ran 43 tests in 0.031s

OK
python -m unittest  -b test/test_snapshotlog.py
..........
----------------------------------------------------------------------
Ran 10 tests in 0.009s

OK
python -m unittest  -b test/test_snapshots.py
..................................................ssss
----------------------------------------------------------------------
Ran 54 tests in 0.247s

OK (skipped=4)
python -m unittest  -b test/test_sshtools.py
sssssssssssssssssssssss...ssssss
----------------------------------------------------------------------
Ran 32 tests in 0.748s

OK (skipped=29)
python -m unittest  -b test/test_takeSnapshot.py
.........sssssssss
----------------------------------------------------------------------
Ran 18 tests in 1.711s

OK (skipped=9)
python -m unittest  -b test/test_tools.py
..............................................................
----------------------------------------------------------------------
Ran 62 tests in 1.246s

OK

dev_aryoda commented on 2022-12-18 21:28 (UTC)

Ping back: https://github.com/bit-team/backintime/issues/1389

Above issue mentions our discussion here but is related to a failing unit test with the overlay file system.

Are you affected by this issue? Does the (already merged fix) cause (new) problems when running the unit tests for HEAD of master?

graysky commented on 2022-11-06 09:27 (UTC)

@dev_aryoda - https://github.com/bit-team/backintime/issues/1356

dev_aryoda commented on 2022-11-06 00:15 (UTC)

File "/build/backintime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d/common/test/test_diagnostics.py", line 114, in test_distro_package_folder self.assertEqual(result, path.parent.parent) AssertionError: Posix[18 chars]ntime') != Posix[18 chars]ntime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d')

The error message is strange (a Posix date/time instead of a folder name string...).

I was not able to reproduce this assertion error on Arch and Manjaro (not even on fresh Arch console-only VM).

Anyhow: I have merged my PR into master after getting the confirmation of another BiT developer.

You could now retest with HEAD of the BiT master branch. I have used commit 6fc658dd54f139b20f858e5089d0baa860bb8300 to test it on Arch and Manjaro with a desktop environment and on a fresh console-only Arch. All unit tests did succeed (make test in common folder) - the warnings can be ignored (intentionally thrown due the first-time-installation without an existing DBus service for BiT).

It would be great if you could do a retest and report issues (we could also open an issue at BiT's Github repo to avoid polluting your comments here)...

graysky commented on 2022-11-05 12:28 (UTC)

@dev_aryoda - even patching the source with your PR ends in a failure.

==> Starting check()...
python -m unittest  -b test/test_applicationinstance.py
...................
----------------------------------------------------------------------
Ran 19 tests in 0.025s

OK
WARNING: import keyring failed
python -m unittest  -b test/test_argparser.py
.....................
----------------------------------------------------------------------
Ran 21 tests in 1.490s

OK
python -m unittest  -b test/test_backintime.py
WARNING: Failed to connect to Udev serviceHelper daemon via D-Bus: org.freedesktop.DBus.Error.FileNotFound
WARNING: D-Bus message: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
WARNING: Udev-based profiles cannot be changed or checked due to Udev serviceHelper connection failure
.WARNING: Failed to connect to Udev serviceHelper daemon via D-Bus: org.freedesktop.DBus.Error.FileNotFound
WARNING: D-Bus message: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
WARNING: Udev-based profiles cannot be changed or checked due to Udev serviceHelper connection failure
.s
----------------------------------------------------------------------
Ran 3 tests in 2.447s

OK (skipped=1)
python -m unittest  -b test/test_backup.py
............
----------------------------------------------------------------------
Ran 12 tests in 0.117s

OK
python -m unittest  -b test/test_config.py
...........
----------------------------------------------------------------------
Ran 11 tests in 0.007s

OK
WARNING: import keyring failed
python -m unittest  -b test/test_configfile.py
......................................................
----------------------------------------------------------------------
Ran 54 tests in 0.004s

OK
WARNING: import keyring failed
python -m unittest  -b test/test_diagnostics.py
....F.
======================================================================
FAIL: test_distro_package_folder (test.test_diagnostics.Diagnostics_FakeFS)
Determin the folder of the project.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/backintime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d/common/test/test_diagnostics.py", line 114, in test_distro_package_folder
    self.assertEqual(result, path.parent.parent)
AssertionError: Posix[18 chars]ntime') != Posix[18 chars]ntime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d')

----------------------------------------------------------------------
Ran 6 tests in 0.023s

FAILED (failures=1)
WARNING: import keyring failed
make: *** [Makefile:574: unittest] Error 1
==> ERROR: A failure occurred in check().
    Aborting...

dev_aryoda commented on 2022-11-05 11:25 (UTC)

@graysky THX for testing, this is exactly one of the bugs I have fixed but my PR for this is not yet merged into master since we observed a strange QPainter output in a non-desktop console-only scenario on Manjaro that we are investigating ATM (may be an old bug or introduced by my PR, let's see).

I will inform you when my PR (https://github.com/bit-team/backintime/pull/1353) is merged into master for a re-test.

graysky commented on 2022-11-05 10:15 (UTC)

@dev_aryoda - see below for an updated PKGBUILD but note that is it currently pointing at your latest commit. Even with the new checkdepends of python-pyfakefs the tests still fail.

https://gist.github.com/graysky2/0806ec772d777cdf8bde879c4e0f51cf

==> Starting check()...
python -m unittest  -b test/test_applicationinstance.py
...................
----------------------------------------------------------------------
Ran 19 tests in 0.025s

OK
python -m unittest  -b test/test_argparser.py
.....................
----------------------------------------------------------------------
Ran 21 tests in 1.442s

OK
python -m unittest  -b test/test_backintime.py
Traceback (most recent call last):
  File "/scratch/backintime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d/common/backintime.py", line 1190, in <module>
    startApp()
  File "/scratch/backintime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d/common/backintime.py", line 507, in startApp
    args = argParse(None)
  File "/scratch/backintime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d/common/backintime.py", line 568, in argParse
    args, unknownArgs = mainParser.parse_known_args(args)
  File "/usr/lib/python3.10/argparse.py", line 1859, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib/python3.10/argparse.py", line 2068, in _parse_known_args
    start_index = consume_optional(start_index)
  File "/usr/lib/python3.10/argparse.py", line 2008, in consume_optional
    take_action(action, args, option_string)
  File "/usr/lib/python3.10/argparse.py", line 1936, in take_action
    action(self, namespace, argument_values, option_string)
  File "/scratch/backintime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d/common/backintime.py", line 742, in __call__
    diagnostics = collect_diagnostics()
  File "/scratch/backintime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d/common/diagnostics.py", line 142, in collect_diagnostics
    result['external-programs']['rsync'] = _get_extern_versions(
  File "/scratch/backintime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d/common/diagnostics.py", line 246, in _get_extern_versions
    return result.strip()
AttributeError: 'dict' object has no attribute 'strip'
E.s
======================================================================
ERROR: test_diagnostics_arg (test.test_backintime.TestBackInTime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/scratch/backintime/src/backintime-2121c60c882e8fa16de6439a27e91b046118291d/common/test/test_backintime.py", line 191, in test_diagnostics_arg
    output = subprocess.check_output(["./backintime", "--diagnostics"])
  File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['./backintime', '--diagnostics']' returned non-zero exit status 1.

----------------------------------------------------------------------
Ran 3 tests in 2.727s

FAILED (errors=1, skipped=1)
make: *** [Makefile:570: unittest] Error 1
==> ERROR: A failure occurred in check().