pax_global_header00006660000000000000000000000064144765254110014523gustar00rootroot0000000000000052 comment=003b6ce132c93e4495a4efefca26ad6c4b84e1bf rdiff-backup-2.2.6/000077500000000000000000000000001447652541100140675ustar00rootroot00000000000000rdiff-backup-2.2.6/.dockerignore000066400000000000000000000000131447652541100165350ustar00rootroot00000000000000.tox build rdiff-backup-2.2.6/.github/000077500000000000000000000000001447652541100154275ustar00rootroot00000000000000rdiff-backup-2.2.6/.github/ISSUE_TEMPLATE/000077500000000000000000000000001447652541100176125ustar00rootroot00000000000000rdiff-backup-2.2.6/.github/ISSUE_TEMPLATE/bug_report.md000066400000000000000000000014571447652541100223130ustar00rootroot00000000000000--- name: Bug report about: Create a report to help us improve title: "[BUG] " labels: ["bug", "triage"] assignees: '' --- ## Bug summary REPLACE THIS LINE - A clear and concise description of what the bug is ## Version, Python, Operating System Call `rdiff-backup info` and replace the following line with the output, repeat for each environment impacted, especially if using remote operations: ```yaml ``` ## rdiff-backup call How did you call rdiff-backup, with which parameters: ``` ``` ## What happened and what did you expect? REPLACE THIS LINE - what happened, what did you expect? ## More information If you can, please repeat the action leading to the error, adding the option `-v9` and attach the output to this bug report. rdiff-backup-2.2.6/.github/ISSUE_TEMPLATE/config.yml000066400000000000000000000010651447652541100216040ustar00rootroot00000000000000# check https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser blank_issues_enabled: false contact_links: - name: rdiff-backup mailing list url: https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users about: A better place to ask questions and get support from the community. - name: rdiff-backup documentation url: https://rdiff-backup.net/#documentation about: Check the documentation, before asking questions. rdiff-backup-2.2.6/.github/ISSUE_TEMPLATE/feature_request.md000066400000000000000000000013001447652541100233310ustar00rootroot00000000000000--- name: Feature request about: Suggest an idea for this project title: "[ENH] " labels: ["enhancement", "triage"] assignees: '' --- ## Is your feature request related to a problem? Please describe. REPLACE THIS LINE - A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] ## Describe the solution you'd like REPLACE THIS LINE - A clear and concise description of what you want to happen. ## Describe alternatives you've considered REPLACE THIS LINE - A clear and concise description of any alternative solutions or features you've considered. ## Additional context REPLACE THIS LINE - Add any other context or screenshots about the feature request here. rdiff-backup-2.2.6/.github/ISSUE_TEMPLATE/support.md000066400000000000000000000013251447652541100216510ustar00rootroot00000000000000--- name: Question or support request about: You're puzzled or something doesn't work as expected title: "[?] " labels: ["support", "triage"] assignees: '' --- ## What is it about? REPLACE THIS LINE - A clear and concise description of what the question or your need is ## Version, Python, Operating System Call `rdiff-backup info` and replace the following line with the output, repeat for each environment impacted, especially if using remote operations: ```yaml ``` ## rdiff-backup call If you tried something already, how did you call rdiff-backup, with which parameters: ``` ``` And what was the result? ``` ``` rdiff-backup-2.2.6/.github/pull_request_template.md000066400000000000000000000035101447652541100223670ustar00rootroot00000000000000 ## Changes done and why ## Self-Checklist - [ ] changes to the code have been reflected in the documentation - [ ] changes to the code have been covered by new/modified tests - [ ] commit contains a description of changes relevant to users prefixed by DOC:, FIX:, NEW: and/or CHG: rdiff-backup-2.2.6/.github/workflows/000077500000000000000000000000001447652541100174645ustar00rootroot00000000000000rdiff-backup-2.2.6/.github/workflows/deploy.yml000066400000000000000000000151461447652541100215120ustar00rootroot00000000000000--- name: Deploy-All on: push: branches: ['*_'] tags: - '*_' # ending underscore for trying things - 'v[0-9]+.[0-9]+.[0-9]+' # final version - 'v[0-9]+.[0-9]+.[0-9]+[abrc]+[0-9]+' # alpha, beta, release candidate (rc) - 'v[0-9]+.[0-9]+.[0-9]+.dev[0-9]+' # development versions # necessary for Windows defaults: run: shell: bash env: WIN_PYTHON_VERSION: 3.10.7 WIN_LIBRSYNC_VERSION: v2.3.2 jobs: build-manylinux: runs-on: ubuntu-latest strategy: matrix: # we could do it also as matrix but it takes longer #python-version: [3.10,3.9,3.8,3.7] #--- Build and deploy Linux wheels using manylinux containers --- # - build manylinux2010 x64 and i686 # - build manylinux2014 x64 # - build manylinux_2_28 x64 # avoiding manylinux2014_i686 because does not provide librsync-devel # manylinux_2_24 is already deprecated many-linux: [2010_x86_64, 2010_i686, 2014_x86_64, _2_28_x86_64] steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # to have the correct version - name: create manylinux wheel(s) in a container uses: addnab/docker-run-action@v1 with: image: quay.io/pypa/manylinux${{ matrix.many-linux }} options: -v ${{ github.workspace }}:/ws run: | if [[ ${{ matrix.many-linux }} != *64 ]]; then PRE_CMD=linux32; fi #py=$(echo ${{ matrix.python-version }} | tr -d .) plat=manylinux${{ matrix.many-linux }} $PRE_CMD /ws/tools/build_wheels.sh /ws ${plat} /opt/python/cp3{10,9,8,7}*/bin - name: Upload wheel artifacts uses: actions/upload-artifact@v3 with: name: package-artifacts path: dist/*.whl if-no-files-found: error build-sdist: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # to have the correct version - name: Install asciidoctor to generate manpages run: | sudo apt-get --assume-yes update sudo apt-get --assume-yes install asciidoctor - name: create source dist package run: python setup.py sdist - name: Upload sdist artifact uses: actions/upload-artifact@v3 with: name: package-artifacts path: dist/*.tar.gz if-no-files-found: error build-windows: runs-on: windows-latest strategy: matrix: arch: [x86, x64] steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # to have the correct version - name: Set up Python ${{ env.WIN_PYTHON_VERSION }} uses: actions/setup-python@v4 with: python-version: ${{ env.WIN_PYTHON_VERSION }} architecture: ${{ matrix.arch }} - name: Install dependencies run: tools/win_provision.sh asciidoc - name: Build librsync run: tools/win_build_librsync.sh ${{ matrix.arch }} ${WIN_LIBRSYNC_VERSION} - name: Build rdiff-backup run: tools/win_build_rdiffbackup.sh ${{ matrix.arch }} ${WIN_PYTHON_VERSION} - name: Package rdiff-backup run: tools/win_package_rdiffbackup.sh ${{ matrix.arch }} - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: package-artifacts path: | dist/*.zip dist/*.whl if-no-files-found: error test-built-windows: runs-on: windows-latest needs: [build-windows] strategy: matrix: arch: [x86, x64] steps: - name: Download artifacts id: download uses: actions/download-artifact@v2 with: name: package-artifacts path: . - name: Extract and test Windows binary run: | ls -la if [[ ${{ matrix.arch }} == *64 ]]; then bits=64; else bits=32; fi 7z x rdiff-backup-*.win${bits}exe.zip cd rdiff-backup-*-${bits} pwd ls -la ./rdiff-backup.exe --help ./rdiff-backup.exe info ./rdiff-backup.exe -v5 backup . ../bak${bits} ./rdiff-backup.exe -v5 verify ../bak${bits} ./rdiff-backup.exe -v5 restore ../bak${bits} to ls -la to/ release: runs-on: ubuntu-latest needs: [build-manylinux, build-sdist, test-built-windows] steps: - name: Download artifacts id: download uses: actions/download-artifact@v2 with: name: package-artifacts path: dist - name: Export artifacts id: export run: echo artifact_files=${{ steps.download.outputs.download-path }}/*.* >> $GITHUB_OUTPUT # see https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - name: Create release and upload assets to GitHub uses: meeDamian/github-release@2.0 with: token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ github.ref }} name: Release ${{ github.ref }} ${{ github.event_name }} draft: true prerelease: true files: ${{ steps.export.outputs.artifact_files }} gzip: false - name: Install twine if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') run: | sudo python -m pip install --upgrade pip sudo pip install twine - name: publish to test PyPI repository if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.dev') env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_TEST }} TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/ run: | twine upload --skip-existing --verbose dist/rdiff*.{whl,tar.gz} # old versions don't understand --non-interactive - name: publish to PyPI repository if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && ! contains(github.ref, '.dev') env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | twine upload --skip-existing --verbose dist/rdiff*.{whl,tar.gz} # old versions don't understand --non-interactive # #--- Build Debian packages --- # - os: linux # language: shell # env: MAKE_STEP=dist_deb RUN_COMMAND= # addons: # apt: # packages: # make sure these match debian/control contents # - build-essential # - debhelper-compat # - dh-python # - fakeroot # - git-buildpackage # - librsync-dev # - python3-all-dev # - python3-pylibacl # - python3-pyxattr # - python3-setuptools # - python3-setuptools-scm # install: # - echo "No pip here" # script: # - make $MAKE_STEP # - cat ../*.changes rdiff-backup-2.2.6/.github/workflows/jekyll-gh-pages.yml000066400000000000000000000030771447652541100232010ustar00rootroot00000000000000# Sample workflow for building and deploying a Jekyll site to GitHub Pages name: Deploy rdiff-backup.net on: # Runs on pushes targeting the default branch push: branches: ["master"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write # Allow one concurrent deployment concurrency: group: "pages" cancel-in-progress: true jobs: # Build job build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Setup Pages id: pages uses: actions/configure-pages@v2 - name: install dependencies and call Jekyll run: | sudo gem install bundler cd docs bundle install bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" . # - name: Setup Pages # - name: Setup Pages # uses: actions/configure-pages@v2 # - name: Build with Jekyll # uses: actions/jekyll-build-pages@v1 # with: # source: ./docs # destination: ./docs/_site - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: path: ./docs/_site # Deployment job deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v1 rdiff-backup-2.2.6/.github/workflows/test_linux.yml000066400000000000000000000030071447652541100224050ustar00rootroot00000000000000--- name: Test-Linux on: push: branches: ['*_'] tags: - '*_' # ending underscore for trying things - 'v[0-9]+.[0-9]+.[0-9]+' # final version - 'v[0-9]+.[0-9]+.[0-9]+[abrc]+[0-9]+' # alpha, beta, release candidate (rc) - 'v[0-9]+.[0-9]+.[0-9]+.dev[0-9]+' # development versions pull_request: # paths-ignore: ['docs/**'] # we can't use it and enforce some checks jobs: test-make-test: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.10",3.9,3.8,3.7] steps: - name: skip workflow if only docs PR id: skip-docs # id used for referencing step uses: saulmaldonado/skip-workflow@v1.1.1 with: phrase: '[DOC]' search: '["pull_request"]' github-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 if: '!steps.skip-docs.outputs.skip' - name: Set up Python ${{ matrix.python-version }} if: '!steps.skip-docs.outputs.skip' uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies if: '!steps.skip-docs.outputs.skip' run: | sudo apt install librsync-dev libacl1-dev rdiff asciidoctor sudo pip3 install --upgrade -r requs/base.txt -r requs/optional.txt -r requs/test.txt - name: Execute tests ${{ matrix.test-step }} if: '!steps.skip-docs.outputs.skip' run: | export RUN_COMMAND= export SUDO=sudo make test # the empty RUN_COMMAND avoids using docker rdiff-backup-2.2.6/.github/workflows/test_windows.yml000066400000000000000000000032441447652541100227430ustar00rootroot00000000000000name: Test-Windows on: push: branches: ['*_'] tags: - '*_' # ending underscore for trying things - 'v[0-9]+.[0-9]+.[0-9]+' # final version - 'v[0-9]+.[0-9]+.[0-9]+[abrc]+[0-9]+' # alpha, beta, release candidate (rc) - 'v[0-9]+.[0-9]+.[0-9]+.dev[0-9]+' # development versions pull_request: # paths-ignore: ['docs/**'] # we can't use it and enforce some checks # necessary for Windows defaults: run: shell: bash env: WIN_PYTHON_VERSION: 3.10.7 WIN_LIBRSYNC_VERSION: v2.3.2 jobs: test-tox-win: runs-on: windows-latest strategy: matrix: arch: [x86, x64] steps: - name: skip workflow if only docs PR id: skip-docs # id used for referencing step uses: saulmaldonado/skip-workflow@v1.1.1 with: phrase: '[DOC]' search: '["pull_request"]' github-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 if: '!steps.skip-docs.outputs.skip' with: fetch-depth: 0 # to have the correct version - name: Set up Python ${{ env.WIN_PYTHON_VERSION }} if: '!steps.skip-docs.outputs.skip' uses: actions/setup-python@v4 with: python-version: ${{ env.WIN_PYTHON_VERSION }} architecture: ${{ matrix.arch }} - name: Install dependencies if: '!steps.skip-docs.outputs.skip' run: tools/win_provision.sh asciidoc - name: Build librsync if: '!steps.skip-docs.outputs.skip' run: tools/win_build_librsync.sh ${{ matrix.arch }} ${WIN_LIBRSYNC_VERSION} - name: Test rdiff-backup if: '!steps.skip-docs.outputs.skip' run: tools/win_test_rdiffbackup.sh ${{ matrix.arch }} ${WIN_PYTHON_VERSION} rdiff-backup-2.2.6/.github/workflows/weekly.yml000066400000000000000000000124531447652541100215140ustar00rootroot00000000000000--- name: Deploy-Weekly on: schedule: # Each Sunday (0) at 22:22 UTC - cron: '22 22 * * 0' # necessary for Windows defaults: run: shell: bash env: WIN_PYTHON_VERSION: 3.10.7 WIN_LIBRSYNC_VERSION: v2.3.2 jobs: build-manylinux: runs-on: ubuntu-latest strategy: matrix: # we could do it also as matrix but it takes longer #python-version: [3.10,3.9,3.8,3.7] #--- Build and deploy Linux wheels using manylinux containers --- # - build manylinux2010 x64 and i686 # - build manylinux2014 x64 # - build manylinux_2_28 x64 # avoiding manylinux2014_i686 because does not provide librsync-devel # manylinux_2_24 is already deprecated many-linux: [2010_x86_64, 2010_i686, 2014_x86_64, _2_28_x86_64] steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # to have the correct version - name: create manylinux wheel(s) in a container uses: addnab/docker-run-action@v1 with: image: quay.io/pypa/manylinux${{ matrix.many-linux }} options: -v ${{ github.workspace }}:/ws run: | if [[ ${{ matrix.many-linux }} != *64 ]]; then PRE_CMD=linux32; fi #py=$(echo ${{ matrix.python-version }} | tr -d .) plat=manylinux${{ matrix.many-linux }} $PRE_CMD /ws/tools/build_wheels.sh /ws ${plat} /opt/python/cp3{10,9,8,7}*/bin - name: Upload wheel artifacts uses: actions/upload-artifact@v3 with: name: package-artifacts path: dist/*.whl if-no-files-found: error build-sdist: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # to have the correct version - name: Install asciidoctor to generate manpages run: | sudo apt-get --assume-yes update sudo apt-get --assume-yes install asciidoctor - name: create source dist package run: python setup.py sdist - name: Upload sdist artifact uses: actions/upload-artifact@v3 with: name: package-artifacts path: dist/*.tar.gz if-no-files-found: error build-windows: runs-on: windows-latest strategy: matrix: arch: [x86, x64] steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # to have the correct version - name: Set up Python ${{ env.WIN_PYTHON_VERSION }} uses: actions/setup-python@v4 with: python-version: ${{ env.WIN_PYTHON_VERSION }} architecture: ${{ matrix.arch }} - name: Install dependencies run: tools/win_provision.sh asciidoc - name: Build librsync run: tools/win_build_librsync.sh ${{ matrix.arch }} ${WIN_LIBRSYNC_VERSION} - name: Build rdiff-backup run: tools/win_build_rdiffbackup.sh ${{ matrix.arch }} ${WIN_PYTHON_VERSION} - name: Package rdiff-backup run: tools/win_package_rdiffbackup.sh ${{ matrix.arch }} - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: package-artifacts path: | dist/*.zip dist/*.whl if-no-files-found: error test-built-windows: runs-on: windows-latest needs: [build-windows] strategy: matrix: arch: [x86, x64] steps: - name: Download artifacts id: download uses: actions/download-artifact@v2 with: name: package-artifacts path: . - name: Extract and test Windows binary run: | ls -la if [[ ${{ matrix.arch }} == *64 ]]; then bits=64; else bits=32; fi 7z x rdiff-backup-*.win${bits}exe.zip cd rdiff-backup-*-${bits} pwd ls -la ./rdiff-backup.exe --help ./rdiff-backup.exe info ./rdiff-backup.exe -v5 backup . ../bak${bits} ./rdiff-backup.exe -v5 verify ../bak${bits} ./rdiff-backup.exe -v5 restore ../bak${bits} to ls -la to/ release-weekly: runs-on: ubuntu-latest needs: [build-manylinux, build-sdist, test-built-windows] steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # to have the correct version - name: force create weekly tag and push it and create release body run: | git tag -f weekly && git push -f origin weekly echo "This weekly release has been built and uploaded automatically." > body.myown.adoc echo "Feel free to use (at your own risk) and report issues." >> body.myown.adoc echo >> body.myown.adoc ./tools/get_changelog_since.sh -M >> body.myown.md - name: Download artifacts id: download uses: actions/download-artifact@v2 with: name: package-artifacts path: dist - name: Export artifacts id: export run: echo artifact_files=${{ steps.download.outputs.download-path }}/*.* >> $GITHUB_OUTPUT # see https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - name: Create release and upload assets to GitHub uses: ncipollo/release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} tag: weekly # commit: master name: Weekly Release ${{ github.event.repository.pushed_at }} bodyFile: body.myown.md prerelease: true artifacts: ${{ steps.export.outputs.artifact_files }} allowUpdates: true removeArtifacts: true rdiff-backup-2.2.6/.gitignore000066400000000000000000000007721447652541100160650ustar00rootroot00000000000000*~ .*.swp build/ dist/ __pycache__ # tox testing stuff .tox* MANIFEST # just ignore files marked local through their name *[._]local[._]* # setup.py installation files src/rdiff_backup.egg-info/ .eggs/ # Windows build file rdiff-backup.spec # Pydev project file /.project /.pydevproject /.externalToolBuilders/ # Jekyll static sites _site/ Gemfile.lock vendor/ # generated files *.html *.pdf # test coverage files .coverage* # Profiling information mprofile_*.dat # Ignore Windows artefacts *.dll rdiff-backup-2.2.6/CHANGELOG.adoc000066400000000000000000003071411447652541100162140ustar00rootroot00000000000000= RDIFF-BACKUP CHANGELOG :pp: {plus}{plus} :sectnums: :toc: preamble The prefixes are to be understood as follows, in roughly decreasing order of importance for rdiff-backup users: * *CHG* marks changes in the behaviour of rdiff-backup, potentially _incompatible_ ones, which you will want to consider before you upgrade or use for the 1st time a new version. * *NEW* features and bug-**FIX**es are of course of interest as well. * **DOC**umentation (and website) changes are marked as such. == New in v2.2.6 (2023-09-08) === Changes * DOC: clarify in man-page that regress on non-failed repository can only be forced with API 201, closes #878 * DOC: reference the installation of rdiff-backup under Windows using Chocolatey * DOC: refresh Windows documentation, removing obsolete instructions * FIX: Call msvcrt.setmode under Windows only when main is called, allowing for stdout and stderr to be captured by testing framework like pytest, closes #885 * FIX: clarify that hard- and symlinks are not supported by rdiff-backup under Windows (see #484 for enhancement), closes #880 * FIX: extended variables were not correctly written if content of file hadn't changed and file was read-only (API 201). * FIX: failed parsing of arguments would return code 2 for warnings instead of 1 for errors * FIX: quoting variables where not correctly propagated when set from the command line (API 201). * FIX: some new functions were needed with higher security level and had to be sorted accordingly (API 201). * FIX: test action would fail with empty error message when using API 201 * FIX: timezone was not always correctly calculated in countries with historically changing DST, closes #902 * NEW: add environment variable RDIFF_BACKUP_API_VERSION to artificially modify the API version dictionary, see the man page for details. * NEW: add warning that server will be called with deprecated CLI and how to avoid the corresponding warning (see also the FAQ) * NEW: there is now a weekly release with changelog for intermediate testing available at https://github.com/rdiff-backup/rdiff-backup/releases/tag/weekly === Authors * BaelfireNightshd * Eric L * Klaatu symlink → gitlab.com/notklaatu * Patrik Dufresne == New in v2.2.5 (2023-05-06) === Changes * DOC: fix man page to have correct arguments order in example, closes #867 * FIX: cross-version issue with 2.0.5 complaining about KeyError restrict_path, closes #872 * FIX: fail gracefully when connection(s) can't be setup e.g. in case of network error, closes #868 === Authors * Eric L * Frank Crawford == New in v2.2.4 (2023-02-27) === Changes * CHG: temp directory given by `--tempdir` isn't used as often as it could to avoid cross-filesystems renaming errors (impossible to address now) * FIX: str object has no lstat attribute when using tempdir for full repository file system, closes #850 === Authors * Eric L == New in v2.2.3 (2023-02-10) === Changes * DOC: add FAQ on how to handle 'No space left on device' messages, closes #838 * DOC: better describe what is expected from commit messages, get rid of DEV and WEB prefixes, as irrelevant to end-users changelog * DOC: describe better principles of new CLI in migration documentation and add 'remove' example, closes #830 * DOC: fixed some typos and formatting in the examples documentation * DOC: fix example with outdated --check-destination-dir instead of regress in man-page * DOC: fix mangled list increments example call * DOC: fix typo in examples because --print-statistics comes _after_ backup command, closes #820 * DOC: Polish and document the Debian package build process and also how to trigger new builds at the rdiff-backup PPA on Launchpad.net * FIX: allow user to use curly braces for shell purposes in remote-schema via format() double-up escape mechanism, closes #818 * FIX: avoid message about renaming over same inode when hardlinks' metadata is modified but not content, closes #816 * FIX: CloseConnections doesn't wait for child prcesses to die, losing output, closes #819 * FIX: ignore instead of failing on strange unreadable symlink 'All Users' on SMB share, closes #817 === Authors * Eric L * Marc van der Sluys * Otto Kekäläinen * Trevor E Cordes * Y.D.X == New in v2.2.2 (2022-12-28) === Changes * FIX: pipeline would create sdist without manpages because asciidoctor wasn't installed, closes #813 === Authors * Eric L == New in v2.2.1 (2022-12-28) === Changes * CHG: the man pages generated from asciidoc are available under dist/ instead of build/ (that should be only relevant to packagers) * FIX: log messages of regression would be too verbose at level INFO/5 * FIX: man pages are pre-generated from asciidoc to avoid one dependency at package time and avoid trying to package librsync.dll under MacOS, closes #807 * FIX: TypeError failure on class function with debug verbosity at level 8 or 9 * NEW: Adds a --size option to the remove increments command that causes it to add these increments' size to the lines showing the removed increments. === Authors * Eric L * pcanning == New in v2.2.0 (2022-12-18) === Changes * DOC: add explanation to FAQ why rdiff-backup complains about deprecated CLI when calling the server * FIX: remove increments would fail uncontrolled if mandatory --older-than option was forgotten, closes #802 === Authors * Eric L == New in v2.1.4rc0 (2022-12-03) === Changes * CHG: the remote directory/ies used for the 'test' action must exist for the test to succeed (it was always the case under Windows but is new for Linux) * DEV: replace the multiple _safe_str functions through utils.safestr.to_str * DOC: add description on how to use a virtualenv to install rdiff-backup without touching one's environment * DOC: explain how to use a custom SSH port in man page and FAQ, closes #130 * DOC: merge documentation from the website with the Git repo, closes #215 * FIX: command line completion would fail on parameter --remote-schema * FIX: failed to properly recognize remote OS as being Windows, closes #788 * FIX: failure when trying to remove Extended Attributes on an NFS share, closes #789 * FIX: fix remove increments action when empty directory can't be removed, closes #765 * FIX: make Globals.set_all to work truly on all connections when working across two servers (and not only one client and one server), was necessary to make compare work when paths are quoted (especially under Windows) * FIX: remove some typos due to cut&paste in action tests, closes #785 * FIX: UNC path \\hostname\some\path would lose first backslash * NEW: make --include-if-present work, it was documented but not implemented === Authors * Eric L == New in v2.1.3b3 (2022-10-22) === Changes * CHG: Update RPM specs to latest requirements and standards * DEV: added pull request templates differentiating between doc and code PRs * DEV: add step test-built-windows to test built artifacts and avoid unrunnable Windows binaries, closes #306 * DEV: add testing/action_backuprestore_test.py to Windows tests * DEV: consolidate all Python and binary dependencies into requirements.txt/requs/*.txt respectively bindep.txt, see DEVELOP.adoc for details, closes #730 * DEV: enable selectiontest.py under Windows * FIX: avoid abort on PermissionError if a locked source file had been successfully backed up once, closes #619 * FIX: bash completion works for new _and_ old CLI, closes #725 * FIX: make Windows wheel runnable by adding rsync.dll and renaming scripts, closes #733, #602 * FIX: recognizes now sub-path of root directory (X:/) as base path under Windows, closes #620 * FIX: regression in fs abilities check on read-only files for read-write actions remove and regress, closes #738 * NEW: new rdiff-backup wheels based on manylinux_2_28, compatible with more recent Linux versions, closes #721 * NEW: the action plug-in `complete` makes writing completion scripts beyond bash much easier, afficionados of alternative shells are called to write their own, see docs/arch/completion.adoc for details === Authors * Eric L * Frank Crawford == New in v2.1.2b2 (2022-09-15) === Changes * DEV: use tox to call pyinstaller in a cleaner environment, addresses #731 * DOC: Windows development docs aligned with pipeline and windows/tools Vagrant/Ansible setup, closes #261 * FIX: locking doesn't fail on read actions when lockfile doesn't exist because repository has been written only with API 200, closes #723 * FIX: remove circular dependency in meta to rpath to allow for newer PyInstaller under Windows, closes #731 * FIX: stop failing on quoting while restoring sub-path of repo with chars_to_quote, closes #722 === Authors * Eric L == New in v2.1.2b1 (2022-09-07) === Changes * CHG: embed Python 3.10.7 instead of 3.10.4 in Windows rdiff-backup, shouldn't impact end-users * CHG: stop supporting Python 3.6 and add Python 3.10 to supported versions, Python 3.6 should still work but it was breaking the pipeline and isn't supported by python.org anymore * DEV: remove dependency on importlib-metadata 1.x, it can be now any version === Authors * Eric L == New in v2.1.2b0 (2022-09-07) === Changes * CHG: (API 201 only) no more increments are created for files where only metadata changed, this spares some disk space and inodes, thanks to rknichols for the idea * CHG: rdiff-backup is now compiled with Python 3.10.4 and Visual Studio 2022, users shouldn't notice any difference beside the fact that rdiff-backup doesn't support (or even work) on Windows 7 and older * CHG: rdiff-backup with API lower than 201 might fail on unlocked repository because it doesn't know about the rdiff-backup-data/lock.yml file * CHG: remove support for python v2 from rdiff-backup-delete * CHG: return codes have changed and are now more detailed, see man-page for details * CHG: start to introduce more specific return codes (1 for error, 2 for warning, 4 for single file error, etc), which can be combined (e.g. 3 for error _and_ warning), this will take time to introduce everywhere * CHG: the Python library psutil has become an optional dependency of rdiff-backup to implement secure locking * DEV: Add psutil feature to utils to gather process information, as well known psutil wasn't fit for purpose and this avoids an unnecessary dependency. * DEV: get rid of unused RepoShadow.update_quoting function * DEV: introduce properly reference path, index, inc and type (partially renamed from restore_....) * DEV: remove RepoShadow.set_rorp_cache from API, make internal to simplify * DEV: split RET_CODE_FILE in RET_CODE_FILE_ERR AND _WARN so that file warnings can be used to detect comparaison differences * DEV: use file system object for two file systems in comparaison action, closes #643 * DOC: add a man-page for rdiff-backup-delete, closes #301 * DOC: add note about old versions of Windows not being supported due to Python support matrix, closes #715 * DOC: add workflow of actions and locations to architecture documentation * DOC: Clarify / correct the FAQ instructions on how to set the timezone for `rdiff-backup` on Windows, and slightly reword the entry, closes #692 * DOC: Clarify global options vs. action-specific options in new CLI syntax in examples, closes #679 * DOC: document how to backup between case aware file systems (VFAT or NTFS), closes #11 * DOC: include more docs in the Windows distribution, see issue #679 * DOC: new standard for graphics using diagrams.net/draw.io * FIX: add message about temporary directory to no space left on device, this impacts only cases where tempdir isn't explicitly set, closes #624 * FIX: allow --buffer option while testing by logging to terminal as string, closes #546 * FIX: (API 201 only) do not compress metadata files if the --no-compression option is given, BEWARE that such a repo can't be read by rdiff-backup 2.0, closes #402 * FIX: (API 201 only) when removing the first hardlink and adding a new one, all hardlinks remain linked together in repo, closes #272 * FIX: ignore failing creation of a device and applying of ACLs in all circumstances, makes rdiff-backup more robust on CIFSv1, closes #678 * FIX: --min/max-file-size options were acting like inclusion functions where they should be considered exclusion ones, closes #466 * FIX: rdiff-backup would complain about enforced quoting overriding suggested quoting even though they were the same * FIX: Regression ErrorLog has no attribute write was fixed by reintroducing the write function (as internal _write method), thanks to @desseim for reporting, closes #686 * FIX: regress option in API 201 was actually still using the old API function * FIX: restoring from sub-path while selecting is now forbidden to avoid data loss, workaround documented in FAQ, closes #463 * NEW: (API 201 only) regress action can be forced on a sane repository, i.e. the last backup can be removed, closes #10 * NEW: (API 201 only) repositories are now locked to avoid concurrent write actions, i.e. backup, regress and remove, it should work on NFS as well, closes #415, closes #122 * NEW: define (imperfect) programmatic usage of rdiff-backup, see FAQ for details, closes #703 === Authors * Eric L * fireartist * Guillaume Legrand * Logan Stromberg * maffe * rknichols == New in v2.1.1a0 === Changes * CHG: all messages have a proper prefix corresponding to their severity (ERROR, WARNING, etc...) * CHG: human readable list of increments with size has slightly changed and is in the same order as the list _without_ size for consistency * CHG: placeholder for version parts in remote schema are Vx, Vy and Vz to align with -V for --version (and reserve small v for verbosity) * CHG: rdiff-backup-delete: improve performance on gzip files by directly using gzip command * CHG: remove the possibility to change chars-to-quote between backup calls, this feature never really worked properly anyway * CHG: requoting a repository can be enforced using --chars-to-quote, use with care * DEV: align Windows Vagrant build pipeline with GitHub build pipeline * DEV: Added patch for Python 3.11 as per bpo-39573 to replace Py_TYPE with Py_SET_TYPE, closes #633 * DEV: align more actions and meta plugins interfaces, add generic plugins module * DEV: change default version string to make it parsable * DEV: documented how to get information about missing code lines in coverage * DEV: for API 201, the fs_abilities module moved to locations as they are only used from repositories and directories * DEV: generic user/group functions have been moved to utils/usrgrp * DEV: improved execution output during tests so that commands can be more easily reused * DEV: improve plugins documentation and add meta plugins docs * DEV: mapping modules (filenames quoting, hardlinks, longnames and owners users/groups) have been moved to locations/map package for better encapsulation * DEV: new test function commontest.rdiff_backup_action using the new CLI interface * DEV: remote functions in Main and backup are deprecated from the API and replaced by class methods in _repo_shadow and _dir_shadow * DEV: RORPath and RPath classes are now PathAlike and can be safely output as string, closes #84 * DEV: server process can be remotely debugged using rpdb and netcat * DEV: the restrict mode and path options are specific to the server action, and not generic * DEV: Vagrant / Ansible build pipeline relies on ansible-core 2.12 and collections * DEV: Windows is now part of the test pipeline even if tests are limited, closes #347 * DOC: add FAQ regarding support of too slow file systems like exFAT and ZFS on SMB, closes #595 * DOC: add FAQ to document GUI and WebUI for rdiff-backup, closes #594 * DOC: Convert documentation from Markdown to AsciiDoc, closes #537 * DOC: docs/DEVELOP.md link in readme was 404. * DOC: updated installation and migration instructions for CentOS, RHEL & Co using COPR or EPEL * DOC: updated Windows developer guide for python 3.9 and x64, linking error explained, thanks to @rstarkov * FIX: backslashes were removed too eagerly in locations, making the use of Windows paths impossible, closes #585 * FIX: calling with remote-schema containing the new server action would fail with NoneType not being iterable, closes #565 * FIX: catch properly long name errors under Windows, closes #558 * FIX: describe implications of undetected case sensitivity and trailing space/period and reduce severity, closes #583 * FIX: do not return an error if no increment is old enough to be removed, closes #616 * FIX: exclude symlinks in first place under Windows to avoid symlink not being of correct type, closes #608 * FIX: handling of RDIFF_BACKUP_VERBOSITY was broken after recent changes * FIX: ignore bad file descriptor (errno 9/EBADF) error impacting a single file, closes #611 * FIX: improve handling of connection errors with clearer message, closes #564 * FIX: issues with trailing spaces/periods on NTFS file system under Linux are now properly detected and such characters quoted, closes #579 * FIX: rdiff-backup-delete: delete metadata from win_access_control_lists * FIX: rdiff-backup-delete: permissions error when trying to delete file or folder * NEW: output runtime information with parsed arguments in debug mode, to help support * NEW: parsable list of increments is in YAML format for easier parsing * NEW: parsable output in YAML for the compare action === Authors * Eric L * Frank Crawford * Patrik Dufresne * Roman Starkov * ToM * user-na == New in v2.1.0a1 (2021-04-10) === Changes * FIX: 64 bits version compiled with PyInstaller for Windows couldn't find its module rdiff_backup, closes #555 === Authors * Eric L == New in v2.1.0a0 (2021-04-08) === Changes * CHG: Add no-compression defaults for videos .webm and tar zStandart-compressed files .tzst * CHG: depend on importlib-metadata instead of setuptools to get rdiff-backup veersion, closes #418 * CHG: man page rdiff-backup-old(1) describes the old CLI, rdiff-backup(1) the new one * CHG: option --test-server will test all servers even if one fails, returning 1 in such case, 2 if the parameters were incorrect, output has also slightly changed. * CHG: option --version outputs extended version information when used in API versions above 200 * CHG: Pickle protocol raised from 1 to 4, it shouldn't impact older versions of rdiff-backup as protocol 4 is known since Python 3.4 and the protocol version is recognized automatically on the receiving end * CHG: rdiff-backup now supports the newly released Python 3.9 and stops supporting the obsolete Python 3.5. * CHG: restoring a specific increment requires now the use of '--restore' parameter * CHG: the host placeholder in the remote schema is now '\{h}', '%s' is deprecated. * CHG: the old command line interface without explicit actions is considered deprecated * CHG: the Windows build uses Python 3.9 instead of Python 3.7 (nobody should notice) * DEV: action plugins are described and implemented as context manager * DEV: add coding conventions under docs/CODING.md to be followed by developers and reviewers. This is a living document which will be expanded over time. * DEV: add docs/api folder with API description to be followed and API v200. * DEV: added coding rules for sorting of items like functions, variables, methods, classes, etc. * DEV: add Globals.PICKLE_PROTOCOL constant and raise it's version from 1 to 4 * DEV: add new package rdiffbackup.locations for directory and repository modules. * DEV: add requirements.txt to help GitHub detect our dependencies and warn about security flaws, closes #434 * DEV: all API interfaces are marked directly in the code with @API to simply recognition while coding. * DEV: document docstrings and import recommendations. * DEV: documented that compatibility functions are to have a postfix `_compat`. * DEV: Explain or remove many asserts throughout the code, closes #398 * DEV: fix issue in ACL tests when user isn't named like group * DEV: increase crossversion check to old version 2.0.5 * DEV: introduction of an 'actions' plug-in interface described in the architecture documentation. * DEV: Make flake8 check python scripts and simplify rdiff-backup-statistics * DEV: make it easier to use and test rdiff-backup directly from the Git repo under Windows using Vagrant * DEV: man page can be generated from markdown * DEV: migrate from Travis-CI (thanks for all the fish) to GitHub actions for our CI/CD pipeline * DEV: pin specific version of pyenv-win in Travis CI so that changes don't make the pipeline without control * DEV: prefix all internal functions, variables and classes with underscore to get more clarify in the code * DEV: reduce max complexity to 20 by simplfiying more functions, mostly using mapping dictionaries * DEV: reduce max complexity to 30 and rename CompareRecursive to compare_recursive. * DEV: Re-write tox.ini to make sure that also sub-processes are part of the coverage calculation, raises test coverage above 80% * DEV: TempFile.new(_in_dir) is replaced by RPath.get_temp_rpath * DEV: there is a new namespace 'rdiffbackup' for new/clean code according to strategy. * DOC: add architecture documentation for better understanding of the overall code structure * DOC: add hint on how to use batch file under Windows * DOC: add how to use Microsoft's OpenSSH from 32-bits rdiff-backup, closes #494, closes #496 * DOC: clarify in the man page(s) that only slashes are allowed in selection patterns under Windows, closes #531 * DOC: clarify selection principles in man-page that pattern matching doesn't resolve relative vs. absolute paths and that it is done on the complete path, closes #533 * DOC: clarify that the host part belongs together with the double colons, closes #480 * DOC: comparaison of old and new Command Line Interface added to the migration documentation * DOC: comparaison of old and new Command Line Interface added to the migration documentation * DOC: docs/migration.md describes how to install rdiff-backup side by side and use old versions 'forever', closes #523 * DOC: document how to use Putty as SSH client thanks to @xastor in #496 * DOC: document more clearly that rdiff-backup 1.x and 2.x are incompatible, closes #513 * DOC: explain the prefixes used in the changelog with focus on potentially incompatible __CH__an__G__es, closes #436 * DOC: make the installation instructions for other Linux and UN*X-OID e.g. BSD systems using PyPI more complete, considering build dependencies. Closes #487 * DOC: man page has been clarified regarding --no-hard-links option * FIX: avoid breaking on non-readable files, causing ListError, closes #34, closes #245 * FIX: avoids MemoryError on Windows when compiling for 64 bits, closes #453 * FIX: cross device link error on ZFS with project quota, closes #519 (#522) * FIX: get rid of spurious resource warnings due to subprocess still running, closes #165 * FIX: longnames are correctly reversed when regressing a failed back-up, closes #9 * FIX: PID handling when process is interrupted now works properly under Windows. * FIX: setting tempdir under Windows might fail with error about mix of bytes and str, closes #540 * FIX: support long paths under Windows 10 v1607 or later, once enabled in registry/GPO (see Windows README for details), closes #236 * FIX: When using the --remove-older-than option with --tempdir, the --tempdir * NEW: both 32 and 64 bits version of rdiff-backup are now built for Windows * NEW: new action 'info' to output system information, try 'rdiff-backup info' * NEW: option --api-version to explicitly set the actual API version, maximum version is 201, default is 200, compatible with 2.0.x * NEW: rdiff-backup has a `--help` parameter, closes #280 * NEW: rdiff-backup has a new interface with actions and sub-options, use `--new --help` to get the help * NEW: rdiff-backup has the concept of API version between client and server * NEW: rdiff-backup-statistics has --help and --version options * NEW: the current rdiff-backup version can be used in the remote schema with 'x.y.z' being split as placeholders '\{vx}', '\{vy}', '\{vz}' so that one can install (via pip) and use a specific major/minor version of rdiff-backup (see the migration docs for details). === Authors * Andrea Veri * dgasaway * Eric L * Felix Yan * Patrik Dufresne * t9t == New in v2.0.5 (2020-07-25) === Changes * CHG: development status now set to stable in PyPI classifiers * CHG: increased version of bundled Python Windows version from 3.7.5 to 3.7.7. (#426) * DEV: add measurement of test coverage to tox.ini and limit to 70% for further improvement, closes #113 * DEV: make CI pipeline faster by joining small jobs together to avoid VM creation overhead. * DOC: add few development notes about profiling rdiff-backup for time and memory consumption === Authors * Eric L == New in v2.0.4rc0 (2020-07-12) === Changes * CHG: explicitly refuse to back-up to exFAT because it doesn't handle properly case insensitive deletion of files, closes #38 * CHG: setuptools is a runtime dependency for installation and tests so that version appears correctly instead of DEV, closes #305 * CHG: testing explicitly for existence of tempdir might make certain setups fail now because tempdir was silently ignored * DEV: Add a misc script to setup an ArchLinux as development platform * DEV: add a new Vagrant configuration to do some smoke tests between the current/development version and any older one * DEV: Add samba server with pre-defined shares to Windows vagrant setup to allow for more extensive tests on shares * DEV: fix compatibility in rollsum and sum-size with rdiff 2.2/2.3 leading to errors in librsynctest, closes #304 * DEV: function rpath.getdevnums now also returns the device type, block or char * DEV: replace deprecated xattr.xattr with xattr. function, closes #177 * DOC: added clearer instructions for installing weak dependencies to support ACLs and EAs under CentOS and RHEL * DOC: fix semi-broken nongnu.org links in manpages of rdiff-backup and rdiff-backup-statistics * FIX: add python3-setuptools as a run time dependency to Debian package so --version works and doesn't output DEV, closes #305. * FIX: address `PY_SSIZE_T` deprecation warning appearing under Python 3.8 in the C code, closes #374 * FIX: avoid error module 'errno' has no attribute 'EDEADLOCK' under MacOSX, closes #366 * FIX: avoid issue with backslash at the end of file path under Windows, closes #395 * FIX: avoid TypeError: a bytes-like object is required, not 'str' when logging error message by fixing encoding, closes #380 * FIX: explicitly test existence of tempdir and avoid "Can't mix strings and bytes in path components" error, closes #367 * FIX: failed on certain device files with no such file or directory error, closes #401 * FIX: Force encoding of log file to be UTF-8 on all platforms and be lenient to avoid codec errors on logging, closes #356 * FIX: Improve handling of files in use under Windows, closes #392 * FIX: more meaningful error message when trying to test-server a local path, closes #396 === Authors * Andreas Olsson * Eric L * Jirka Vejrazka * Neha S * Otto Kekäläinen * Patrik Dufresne == New in v2.0.3 (2020-05-17) === Changes * CHG: multimedia files with extensions ogv, oga, ogm and mkv aren't compressed any more. * CHG: Rename CHANGELOG to CHANGELOG.md, format to markdown and fix references, closes #279 * FIX: handle properly include/exclude files with Windows/DOS endings, closes #357 === Authors * Eric L * Jannis * Patrik Dufresne == New in v2.0.1rc0 (2020-05-05) === Changes * CHG: return error code 2 instead of number of failed files during repo verification to have a consistent return code (1 would be any other kind of error, or 0 if everything is well), closes #338 * FIX: Added backticks to `` in develop docs so missing word is shown, closes #303 * FIX: allow again to backup from and to Windows shares, closes #337 * FIX: avoid bytes/str object issue under MacOS/X while checking forks FS abilities, closes #320 * FIX: avoid charmap encoding errors during logging on Windows due to extended characters, closes #344 * FIX: avoid IndexError: string index out of range error when using accentuated characters in exclude/include patterns, closes #340 * FIX: avoid test error when using librsync >= 2.2 by adding -R rollsum to rdiff call in librsynctest, closes #304 * FIX: fail with meaningful error message on metadata mirror files with duplicate timestamps, closes #322 * FIX: sequence of exception leading to abort when logging tuple of bytes because of unreachable directory, closes #310 * NEW: Create a new rdiff-backup-delete script which can remove a file and all its history from a backup repository (use with care). * NEW: option --allow-duplicate-timestamps to only warn about duplicate timestamps in metadata mirror files, use this option with care and only to clean an impacted backup repository. * DOC: add Fedora and RHEL to installation instructions, and evoke Raspbian, closes #316 * DOC: Update installation steps to make them clearer to users * DOC: improved installation and contributors documentation * DEV: clarify version tag pattern and their influence on releases, closes #326 * DEV: much better automated installation of Windows development VM via Vagrant/Ansible * DEV: errorsrecovertest test script to test recovering from old errors. === Authors * albert-github * dominicraf * Eric L * Otto Kekäläinen * Patrik Dufresne * Trevor Harmon == New in v2.0.0 (2020-03-15) === Changes * FIX: Add workaround to avoid error when backup directory is under the source directory (see issue #296), there is a warning but the backup can succeed. * FIX: bytestotime() should return None on decode failure (Closes #295) * NEW: add a unit test for bytestotime() in order to avoid a regression like issue #295. === Authors * Eric L * zjw == New in v1.9.2rc0 (2020-03-08) === Changes * FIX: UpdateError: Updated mirror temp file does not match source, Closes #237 * CHG: Add new logo and improve visual appeal of the README (Closes: #286) (#287) * NEW: Add Windows developments documentations, closes #220 * FIX: do not fail when starting with uid/gid equal to maximum, avoid OverflowError on os.chown === Authors * Eric L * Patrik Dufresne * zjw == New in v1.9.1b0 (2020-02-23) === Changes * FIX: remove too specific Debian packages from GitHub deployment, closes #263 * NEW: add a new tool to help generate the changelog (description in DEVELOP.md) * DOC: new release rules and procedure added to docs/DEVELOP.md * FIX: avoid double unquoting of increment file infos, closes #266 * FIX: versioning of Debian packages follows without glitch the overall tag based versioning. * DEV: automate via Travis deployment pipeline release to PyPI and Test PyPI. * FIX: remove some more ugly bytes output in strings using _safe_str, closes #238 * FIX: added and moved hardlinks were not correctly counted and restored, Closes #239 * FIX: rdiff-backup complained about missing SHA checksums of hardlinks, Closes #78 * FIX: avoid int is not iterable error when calling remote command on Windows * DEV: flake8 checks only setup.py, src, testing and tools code. * NEW: add support for SOURCE_DATE_EPOCH to override the build date, making reproducible builds possible. * NEW: sparse files are handled more efficiently, if not compressed and depending on file system === Authors * Bernhard M. Wiedemann * Eric L * Otto Kekäläinen * Patrik Dufresne * Stefan Seyfried * zjw == New in v1.9.0b0 (2020-01-31) Different bug fixes, improvements in code and documentation - too many to list (Andreas Olsson, Andrew Foster, Arrigo Marchiori, bigbear3001, davekempe, David I. Lehn, elMor3no, Eric Lavarde, Frank Crawford, Jiri Lunacek, joshn, Josh Soref, mestre, Oliver Lowe, orangenschalen, Otto Kekäläinen, owsla, Patrik Dufresne, Reio Remma, Rodrigo Silva, Stefan Seyfried, Wes Cilldhaire, zjw) Add automated of different package formats (Otto Kekäläinen, Arrigo Marchiori, Eric Lavarde) Add RDIFF_BACKUP_VERBOSITY environment variable (Eric Lavarde) Add support for Python 3.5 to 3.8, remove support for Python 2.x (Eric Lavarde) Fix OverflowError on 64-bit systems when backing up symlinks with uid or gid above INT_MAX. Thanks to Michel Le Cocq for the bug report. (Andrew Ferguson) Start using Unicode internally for filenames. This fixes Unicode support on Windows (Josh Nisly) Don't print "Fatal Error" if --check-destination-dir completed successfully. Thanks to Serge Zub for the suggestion. (Andrew Ferguson) Allow --test-server option to be combined with --restrict. Thanks to Nick Moffitt for reporting the error. Closes Ubuntu bug #349072. (Andrew Ferguson) == New in v1.3.3 (2009/03/16) Improve handling of incorrect permissions on backup repository during restore operation. Closes Ubuntu bug #329722. (Andrew Ferguson) Don't crash on zlib errors. Closes Debian bug #518531. (Andrew Ferguson) Make sticky bit warnings quieter while determining file system abilities. Closes Savannah bug #25788. (Andrew Ferguson) Fix situation where destination file cannot be opened because of an access error. Thanks to Dean Cording for the bug report. (Andrew Ferguson) Fix --compare-hash options on Windows. Thanks to Serge Zub for the fix. == New in v1.3.2 (2009/03/02) Don't crash when filesystem can't set ACL. Thanks to Matt Thompson for the bug report. (Andrew Ferguson) Fix Security Error when performing non-backup operations on Windows. Thanks to Tommy Keene for the bug report. (Andrew Ferguson) Properly disable hardlinks by default on Windows. Fix Python 2.2 compatibility. Closes Savannah bug #25529. (Andrew Ferguson) Fix typo which caused failure when checking if another rdiff-backup process is running on Windows. Thanks to Ryan Hughes for the bug report. (Andrew Ferguson) Disable hardlinks by default on Windows when performing operations such as --compare, etc. Thanks to Ryan Hughes for the bug report. (Andrew Ferguson) Change --min-file-size and --max-file-size to agree with man page. These options no longer include files, and will only apply to regular files. Thanks to Johannes Jensen for the suggestion. (Andrew Ferguson) Improve error message if regress operation fails due to Security Violation. Thanks to Grzegorz Marszalek for the bug report. (Andrew Ferguson) == New in v1.3.1 (2009/01/27) Improve support for handling too long filenames under Windows. Too long directory names and paths are still a problem. (Andrew Ferguson) Print more helpful error messages when the remote command cannot be started on Windows. Thanks to Dominic for the bug report. (Andrew Ferguson) Fix --test-server option when used with remote Windows clients. Thanks to Thanos Diacakis for testing. (Andrew Ferguson) Fix --override-chars-to-quote option. (Andrew Ferguson) Fix typo in robust.py which broke error reporting. Closes Savannah bug #25255. Ignore Windows errors caused by too long filenames; the files are not yet backed-up, but the backup process is no longer halted. (Andrew Ferguson) == New in v1.3.0 (2009/01/03) New option: --use-compatible-timestamps, which causes rdiff-backup to use - as the hour/minute/second separator instead of :. Enabled by default on systems which require : to be escaped. (Oliver Mulatz) Allow rdiff-backup to backup files which it cannot read, but can change the permissions of. (Andrew Ferguson) Take start and end times from same system so that the elapsed time printed in the statistics is not affected by time zone. (Andrew Ferguson) Properly fix escaping DOS devices and trailing periods and spaces; now supports native Windows and Linxu/FAT32. (Andrew Ferguson) == New in v1.2.4 (2009/01/01) Disable escaping trailing spaces and periods for now since it broke remote restores. Thanks to Dominic for reporting the issue. (Andrew Ferguson) == New in v1.2.3 (2008/12/28) The official Windows build now includes the librsync patch for files > 4GB. This requires the Visual C{pp} 2008 redistributable, available from Microsoft. The epoch is now a valid date. Closes Savannah bug #24814. (Andrew Ferguson) Report that connection has dropped if filesystem operation returns ENOTCONN. Closes Ubuntu bug #219920. (Andrew Ferguson) Print a more helpful error message if we get an error while reading an old current_mirror marker. This can happen because it has been locked or deleted by a just-finished rdiff-backup process. Closes Ubuntu bugs #88140 and #284506. (Andrew Ferguson) Do not backup reparse points on native Windows. Thanks to John Covici for reporting the issue. (Andrew Ferguson) Support comments in rdiff-backup's ACL files and quote the quoting character properly if user changed it. (Patch from Oliver Mulatz) Print a more helpful error message if we cannot read the backup destination. Closes Ubuntu bug #292586 (again). (Andrew Ferguson) Print a more helpful error message if we cannot write to the backup destination. (Andrew Ferguson) Add ETIMEDOUT to the list of recoverable errors; when irrecoverable, a ConnectionError is raised. Closes Ubuntu bug #304659. (Andrew Ferguson) Suppress warnings about the deprecated sha module in Python 2.6. We'll remove this after rdiff-backup is ported to Python 3. (Patch from Josh Nisly) Test for symlink permissions now produces a functioning symlink. Thanks to Julien Poffet for reporting the issue. (Andrew Ferguson) Fix for crash when deleting read-only files on Windows. (Patch from Josh Nisly) Fix for Python 2.2 in win_acls.py (Closes Savannah bug #24922). Throttle verbosity of listattr() warning messages from 3 to 4. (Andrew Ferguson) Escape trailing spaces and periods on systems which require it, such as Windows and modern Linux with FAT32. (Andrew Ferguson) Print nicer error messages in rdiff-backup-statistics (without tracebacks). Closes Ubuntu bug #292586. (Andrew Ferguson) Properly handle EINVAL "Invalid argument" errors when setting extended attributes. Thanks to Kevin Fenzi for reporting the issue. (Andrew Ferguson) Add warning message if pyxattr is below version 0.2.2. (Andrew Ferguson) Add "Stale NFS file handle" (ESTALE) to the list of recoverable errors. Thanks to Guillaume Vachon for reporting the issue. (Andrew Ferguson) Workaround for broken support for symlink extended attributes in pyxattr < 0.2.2. Thanks to Leo Bergolth for reporting the issue. (Andrew Ferguson) Handle ELOOP ("Too many levels of symbolic links") error when reading extended attributes from symlinks. Closes Savannah bug #24790. (Andrew Ferguson) Inform the user of which file has failed if an exception occurs during a rename operation. (Andrew Ferguson) == New in v1.2.2 (2008/10/19) Automatically resume after a failed initial backup. (Patch from Josh Nisly) Improve compatibility between Unix and remote native Windows client. It is now possible to use SSH daemons other than Putty on Windows. (Andrew Ferguson) Print a more informative error message if the user's remote shell prints extraneous information before rdiff-backup runs. (Andrew Ferguson) Don't backup Windows ACLs if the --no-acls option is specified. Thanks to Richard Metzger for reporting the issue. (Andrew Ferguson) Add error handling and logging to Windows ACL support; fixes Windows backup to SMB share. Improve test in fs_abilities to determine if Windows ACLs are supported. (Andrew Ferguson) Add a warning message if extended attributes support is broken by the filesystem (such as with older EncFS versions). (Andrew Ferguson) Improve handling of Windows ACLs by switching to API functions which understand inherited ACEs; fixes support for Windows 2000. (Andrew Ferguson) Support extended attributes on symbolic links. (Andrew Ferguson) On Mac OS X, read the com.apple.FinderInfo extended attribute since it is the only storage location for the 'busy' (Z) Finder attribute. (Andrew Ferguson) Properly fix "AttributeError: RPath instance has no attribute 'inc_compressed'" bug. Fix in 1.1.12 was in correct place, but wrong solution. (Andrew Ferguson) Improve support for Python 2.5, which refactored the built-in exceptions so that SystemExit and KeyboardInterrupt no longer derive from Exception. Closes support request #106504. (Andrew Ferguson) Adjust --exclude-if-present option to support directories, symlinks, device files, etc. Closes bug #24192. Thanks to Vadim Zeitlin for the suggestion. == New in v1.2.1 (2008/08/24) Produce a new binary for Windows which includes the Python for Windows Extensions. Thanks to Shohn Trojacek for reporting the problem. Disable hardlinks by default when backup source or restore destination is on Windows. (Andrew Ferguson) Properly catch KeyboardInterrupt on Python 2.5. (Andrew Ferguson) Don't crash if a CacheIndexable tries to clear a non-existent cache entry, since the entry must already be cleared. (Andrew Ferguson) == New in v1.2.0 (2008/07/27) Fall back on the Python make_file_dict function when the filename contains non-ASCII characters. (Andrew Ferguson) Ignore Extended Attributes which have Unicode characters outside the current system representation. These will be correctly handled when rdiff-backup switches to Python 3, which will have full Unicode support. (Andrew Ferguson) == New in v1.1.17 (2008/07/17) Move make_file_dict_python so that it is run on the remote end instead of the local end. This improves performance for Windows hosts since it eliminates the lag due to checking os.name. It also makes the Windows design parallel to the Posix design, since the Windows method now returns a dictionary across the wire. (Andrew Ferguson) Catch EPERM error when trying to write extended attributes. (Andrew Ferguson) Allow rdiff-backup to be built into a single executable on Windows using py2exe ("setup.py py2exe --single-file"). (Patch from Josh Nisly) Properly handle uid/gid comparison when the metadata about a destination file has become corrupt. Closes Debian bug #410586. (Andrew Ferguson) Properly handle hardlink comparison when the metadata about a destination hardlink has become corrupt. Closes Debian bug #486653. (Andrew Ferguson) Fix typo in fs_abilities noticed by Martin Krafft. Add EILSEQ ("Invalid or incomplete multibyte or wide character") to the list of recoverable errors. Thanks to Hanno Stock for catching that. (Andrew Ferguson) Catch another reasonable error when reading EAs. (Andrew Ferguson) Use the Python os.lstat() on Windows. (Patch from Josh Nisly) Support for Windows ACLs. (Patch from Josh Nisly and Fred Gansevles) Fix user_group.py to run on native Windows, which lacks grp and pwd Python modules. (Patch from Fred Gansevles) Optimize --check-destination and other functions by determining the increment files server-side instead of client-side. (Patch from Josh Nisly) Actually make rdiff-backup robust to failure to read an ACL because the file cannot be found. (Andrew Ferguson) Get makedist working on Windows. (Patch from Josh Nisly) == New in v1.1.16 (2008/06/17) Properly preserve hard links when the destination does not support them. Thanks to Andreas Olsson for noticing the problem. (Andrew Ferguson) Fix another case where rdiff-backup fails because it has insufficient permissions on a file it owns. Thanks to Peter Schuller for the test case. (Andrew Ferguson) Don't abort if can't read extended attributes or ACL because the path is considered bad by the EA/ACL subsystem; print a warning instead. Problem reported by Farkas Levente. (Andrew Ferguson) rdiff-backup-statistics enhancements suggested by James Marsh: flush stdout before running other commands, and add a --quiet option to suppress printing the "Processing statistics from session..." lines. (Andrew Ferguson) Don't set modification times for directories on Windows. Also, assume that user has access to all files on Windows since there is no support for getuid(). (Patch from Josh Nisly) Add Windows-specific logic for checking if another rdiff-backup process is running. Do not try to handle non-existant SIGHUP and SIGQUIT signals on Windows. (Patch from Josh Nisly) Do not use inode numbers on Windows and gracefully handle attempts to rename over existing files on Windows. (Patch from Josh Nisly) Finally fix 'No such file or directory' bug when attempting to regress after a failed backup. (Patch from Josh Nisly) Improve Unicode support by escaping Unicode characters in filenames when printing them in log messages from eas_acls.py. (Fix from Saptarshi Guha) Handle Windows' lack of getuid(), getgid(), hardlinks and symlinks in fs_abilities.py. Use subprocess.Popen() on Windows since it does not support os.popen2(). (Patch from Josh Nisly) Let setup.py accept arguments on Windows. (Patch from Josh Nisly) Get cmodule.c building natively on Windows. (Patch from Josh Nisly) Don't give up right away if we can't open a file. Try chmod'ing it even if we aren't root or don't own it, since that can sometimes work on AFS and NFS. Closes Savannah bug #21202. (Andrew Ferguson) Correctly handle updates to nested directories with unreadable permissions. Thanks to John Goerzen for the bug report. Closes Debian bugs #389134 and #411849. (Andrew Ferguson) Manpage improvements from Justin Pryzby. Improve the handling of directories with many small files when backing-up over a network connection. Thanks to Austin Clements for the test case. (Andrew Ferguson) Change high-bit permissions test to check both files and directories. Improves rdiff-backup's support for AFS and closes Debian bug #450409. (Patch from Marc Horowitz) rdiff-backup-statistics now supports quoted repositories. Closes Savannah bug #21813. (Andrew Ferguson) Add EBADF to the list of recoverable errors when fsync() is called. This fixes an rdiff-backup error on AIX and IRIX. Closes Savannah bug #15839. (Fix from Peter O'Gorman) Properly initialize new QuotedRPaths. Fixes --list-at-time, etc. when the target is remote. (Andrew Ferguson) == New in v1.1.15 (2008/01/03) New feature: If quoting requirements change, rdiff-backup can requote the entire repository if user specifies the --force option. (Andrew Ferguson) Don't print the warning message about unsupported hard links if the user has specified the --no-hard-links option. (Suggested by Andreas Olsson) Print a more helpful error message when we get a "Result too large" error when trying to copy a file. (Andrew Ferguson) Fix bug where rdiff-backup fails after all increments are removed. Closes Savannah bug #20291. (Andrew Ferguson) Don't assume that a file cannot be read simply becasue of the access permissions -- eg, NFS with (rw,all_squash) options. Closes Savannah bug #21202. (Based on patch from Marc Horowitz) restore_set_root should check if it can read a particular directory before checking if "rdiff-backup-data" is contained in it. Closes Savannah bug #21106. (Patch from Alex Chapman) Regress.restore_orig_regfile should check if directories can be fsync'd before doing so. Fixes Savannah bug #21546. (Patch from Marc Horowitz) Rewrite quoting logic to independently check for escaping Windows special characters, non-ASCII chars, and uppercase chars. (Andrew Ferguson) Permit Unicode log messages. (Andrew Ferguson) == New in v1.1.14 (2007/08/13) New release to work around Python bug. EFTYPE is not defined in Python's errno module, but is necessary to check on BSD's. (Andrew Ferguson) == New in v1.1.13 (2007/08/12) Properly pickle QuotedRPaths. Fixes regress operation on quoted filesystems. Closes Savannah bug #20570 reported by Morgan Read. (Andrew Ferguson) Warn if can't write extended attribute. (Andrew Ferguson) Gracefully handle situations where rdiff-backup tries to set the sticky bit on non-directory files on systems that don't support that action. Thanks to Jim Nasby for the bug report. (Andrew Ferguson) Prevent the extended filenames / UTF-8 test from raising an exception on broken CIFS configurations which transform some characters to '?'. Problem reported by Luca Cappe. (Andrew Ferguson) Cygwin on FAT32 hangs when trying to open a file named "aux". Change the escape DOS devices test to use "con" instead. (Andrew Ferguson) Fix symlink behavior when filesystem is mounted via CIFS. Closes Savannah bug #20342. (Andrew Ferguson) Fix "too many open files" bug when handling large directories. Patch from Anonymous in Savannah bug #20528. New options: --tempdir and --remote-tempdir. The first one sets the directory that rdiff-backup uses for temporary files on the local system. The second adds the --tempdir option with the given path when invoking rdiff-backup on remote systems. (Andrew Ferguson) Don't run the extended attributes test if rdiff-backup is run with the --no-eas option. Prevents hang in isolated cases. (Andrew Ferguson) Don't throw an error when clearing extended attributes if they are not supported on the file. (Andrew Ferguson) == New in v1.1.12 (2007/07/12) Use .dll as library file extension on Cygwin and Windows. (Andrew Ferguson) Avoid setting permissions to 000 because they're out of sync. (Andrew Ferguson) listxattr() can also throw EPERM error if not supported. (Andrew Ferguson) Do something sensible if we get an IOError while trying to appropriately log another exception. (Andrew Ferguson) Handle exception when get permission denied on a file while trying to establish case sensitivity on read-only side. (Andrew Ferguson) Finally solve AttributeError due to no 'inc_compressed' attribute that occured during some regress operations. (Andrew Ferguson) Squash bug where --check-destination-dir or regress operation failed after crash when --force option was not used. RPath's are now properly pickled. (Andrew Ferguson) Workaround for tempfile.TemporaryFile() having different behavior on Windows/Cygwin. (Andrew Ferguson) Make --check-destination-dir handle quoted situations. (Andrew Ferguson) Handle quoted current_mirror markers and clean-up the listing of increments with quoted names. (Andrew Ferguson) Warn if file modification time is before 1970. (Andrew Ferguson) == New in v1.1.11 (2007/06/15) Fix typo in Main.py introduced in 1.1.9 (Andrew Ferguson) FIFOs don't have extended attributes -- don't try to access them. (Andrew Ferguson) Fix for bug #19612 -- Incorrect line broke --no-compression option. (Fix by Thiago in bug comment) Fix for bug #19896 -- symlink() doesn't work on a CIFS-mounted Windows share. (Jonathan Hankins) Fix for bug #19895 -- eliminate traceback for special file detection on CIFS mounts. (Jonathan Hankins) == New in v1.1.10 (2007/05/12) New --exclude-if-present option (i.e. --exclude-if-present .nobackup). (Jeff Strunk). Use signal 0 rather than signal.NSIG when testing if another rdiff-backup is still running. (Patch from Sébastien Maret) Sockets don't have extended attributes -- don't try to access them. (Patch from Andrew Ferguson.) Fix restore from read-only bug -- rx perms on a repository directory are enough, no need for write perms when restoring. (patch from Andrew Price) Fix --list-increments bug in set_must_escape_dos_devices. (Marc Dyksterhouse) == New in v1.1.9 (2007/01/29) Cygwin generates OSError when changing permissions on partitions. (Patch from Andrew Ferguson.) Fix fs_abilities.py patch error with set_escape_dos_devices. (Marc Dyksterhouse) Glob escaping support via backslash. (Andrew Price) == New in v1.1.8 (2007/01/29) Cygwin generates EACCESS on fsync -- so accept it rather than dieing. (Marc Dyksterhouse). Add "FilenameMapping.set_init_quote_vals" security exception. (Marc Dyksterhouse) Escape DOS device filenames when necessary. Adjust DOS filename quoting to work properly with cygwin. (Marc Dyksterhouse) Allow for preservation of FinderInfo for folders and fix typo in Time.py. (Patch from Andrew Ferguson.) Test for symlink permissions support to avoid unnecessary syscalls on platforms that don't support them. (Patch from Andrew Ferguson.) RPM specfile update from Gordon Rowell. == New in v1.1.7 (2006/11/12) Fix showstopper problem on OSX handling pre-1.1.6 rdiff-backup metadata. (Patch from Andrew Ferguson.) == New in v1.1.6 (2006/11/11) Man page update from roland link:mailto:devzero@web.de[devzero@web.de]. --min-file-size/--max-file-size support. (Patch from Wout Mertens.) Mac OS X Extended Attributes support. (Patch from Andrew Ferguson.) Preserve Mac OS X 'Creation Date' field across backups. (Patch from Andrew Ferguson.) Set symlink permissions properly. (Patch from Andrew Ferguson.) Selection fix: empty directories could sometimes be improperly excluded if certain include expressions involving a non-trailing '**' were used. Bug reported by Toni Price. A few minor changes to help rdiff-backup back up to an SMB/CIFS share. Thanks to Cengiz Gunay for testing. Fix a traceback due to an off-by-1 error in "--remove-older-than nB". Fix a security violation when restoring from a remote repository. (Patch from Charles Duffy.) Added times like "Mon Jun 5 11:00:23 1997" to the recognized time strings. (Suggested by Wolfgang Dautermann.) == New in v1.1.5 (2006/01/01) rdiff-backup will now exit by default if it thinks another rdiff-backup process is currently working on the same repository. Empty error_log, mirror_metadata, extended_attribute, and access_control_lists files will no longer be gzipped (suggestion by Hans F. Nordhaug). Fix for restoring files in directories with really long names. Added supplementary rdiff-backup-statistics utility for parsing rdiff-backup's statistics files (originally based off perl script by Dean Gaudet). rdiff-backup should now use much less memory than v1.1.1-1.1.4 if you have lots of hard links. == New in v1.1.4 (2005/12/13) Quoting should be enabled only as needed between case-sensitive and non-case-sensitive systems (thanks for Andrew Ferguson for report). Files with ACLs will not be unnecessarily marked as changed (bug report by Carsten Lorenz). Fix for common KeyError bug introduced in v1.1.3. == New in v1.1.3 (2005/11/25) Regression metadata bug introduced with 1.1.1/1.1.2 fixed. rdiff-backup should now give a clean error message (no stack traces!) when aborted with control-C, killed with a signal, or when the connection is lost. When removing older than, delete empty increments directories Long filename bug finally fixed (phew). rdiff-backup should now correctly mirror any file that it can read. Due to very detailed error report from Yoav, fixed a "Directory not empty" error that can arise on emulated filesystems like NFS and EncFS. Cleaned up remove older than report, and also stopped it from deleting current data files if you specify a time later than the current mirror. == New in v1.1.2 (2005/11/06) This version corrects a packaging error in v1.1.1, which was totally broken. == New in v1.1.1 (2005/11/05) rdiff-backup now writes SHA1 sums into its mirror_metadata file for all regular files, and checks them when restoring. The above greatly increases the size of the mirror_metadata files, so diff them for space efficiency, as suggested by Dean Gaudet. Added two new comparison modes: full file (using the --compare-full or --compare-full-at-time) or by hash (--compare-hash and --compare-hash-at-time). Applied Alec Berryman's patch to update the no-compression regexp. Alec Berryman's fs_abilities patch is supposed to help with AFS. Fixed filename-too-long crash when quoting. Patched carbonfile support, re-enabled it by default. == New in v1.1.0 (2005/10/24) Refactored fs_abilities for more flexibility. In particular, avoid quoting if both source and destination file systems are case-insensitive. Increased buffer sizes by factor of 4, because everyone probably has 4 times as much RAM now as when I originally picked those values. When possible, fsync using a writable file descriptor. This may help with cygwin. (Requested/tested by Dave Kempe.) Support req 104755: Added --preserve-numerical-ids option, which makes rdiff-backup preserve uids/gids instead of unames/gnames. (Suggested by Wiebe Cazemier) Fix for bug #14799 reported by Bob McKay: Crash when backing up files with high permissions (like suid) to some FAT systems. == New in v1.0.2 (2005/10/24) Fix for spurious security violation from --create-full-path (reported by Mike Bydalek). Fix for bug 14545 which was introduced in version 1.0.1: Quoting caused a spurious security violation. (Important for Mac OS X) An error reading carbonfile data on Mac OS X should no longer cause a crash. (Thanks to Kevin Horton for testing.) Carbonfile support now defaults to off, even if the system appears to support it. It can be manually enabled with the --carbonfile switch. If you know something about Mac OS X and want to look at the carbonfile code so it can be re-enabled by default, please do so :) (help available from list) == New in v1.0.1 (2005/09/10) Fix for "'filetype' of type exceptions.KeyError" error when restoring. Test case provided by Davy Durham. (The problem was the mirror_metadata file could become un-synced when a file is deleted when rdiff-backup is running and later the directory that file is in gets deleted.) Librsync signature blocksize now based on square root of file length. rdiff-backup now writes its PID to current_mirror marker (suggested by Kevin Spicer). fsync_directories defaults to None, to avoid errors in testing (suggestion by Charles Duffy). bug#14209: Security bug with --restrict-read-only and --restrict-update-only allowed file statting and directory listing outside path. Bug with --restrict option allowed writes outside path. (Reported by Charles Duffy.) bug #14304: Python 2.2 compatibility spoiled by device files. lchown no longer required, which is good news for Mac OS X 10.3. == New in v1.0.0 (2005/08/14) Handle cases of junk uid/gids better on 64bit systems. (Bug report by Nick Bailey) Filenames in the file_statistics*gz files are now quoted the same way as filenames in the metadata file (LF \=> \n and \ \=> \). Fix from Paul P Komkoff Jr for uid typo in text_to_entrytuple. bug#12726: fix regressing of devices while running as non-root -- zero length files are created as placeholders. bug#13476: must always compare device numbers when we compare inode numbers -- fix a non-fatal problem with hardlinks when a filesystem is moved to another device (and the inodes don't change). bug#13475: correct an UpdateError when backing up hardlinks with EAs and/or ACLs. debian bug#306798: SELinux security attributes can not be removed and rdiff-backup should not fail when it fails to remove them from temp files. fix from Konrad Podloucky. bug#12949: eliminate an exception during fs abilities testing on OS X 10.4. fix from Daniel Westermann-Clark. patch#4136: OSX filename/rsrc has been deprecated for some time, and as of OSX 10.4 it causes log spam. the new proper use is filename/..namedfork/rsrc. fix from Daniel Westermann-Clark. Log EACCES from listxattr rather than raising an exception -- this can happen when the repository has permission problems. Added Keith Edmunds patch adding the --create-full-path option. Fixed selection bug reported by Daniel Richard G. bug#13576: You can now back ACLs to a computer that doesn't have the posix1e module. bug#13613: Fix for overflow error that could happen when backing up files with dates far in the future on a 64bit machine to a 32 bit one. Symlink ownership should be preserved now. Reported by Naoki Takebayashi and others. == New in v0.13.6 (2005/04/07) Fixed timezone bug. Hopefully this is the last one. (Thanks to Randall Nortman for bug report.) Added fix for listing/restoring certain bad archives made when there was a timezone bug. (Thanks to Stephen Isard) ********** Serious bug fix ************ If a directory in the source directory was replaced by certain symlinks, then if later backups failed they could cause files in the directory that the symlink pointed to to be deleted! Much thanks to Alistair Popple for pointing this bug out and providing a test case. == New in v0.13.5 (2005/03/28) Added error-correcting fsync suggestion by Antoine Perdaens. rdiff-backup may work better with NFS now. Fix by Dean Gaudet for --calculate-average mode (it broke somewhere in 0.13.x). Fix for regress warning code: rdiff-backup should warn you if you are trying to back up a directory into itself. Fix for restoring certain directories when not run as root. Now when determining group permissions check supplementary groups as well as main group. (Bug report by Ryan Castle.) Fixed bug which could cause crash when backing up 3 or more hard linked files and the first gets deleted during processing. (Thanks to Dean Gaudet for bug report.) Fixed user/group restoring error noticed by Fran Firman. Checked in Robert Shaw's --chars-to-quote patch Treated hard link permission problem on Mac OS X by applying suggestion by David Vasilevsky Dean Gaudet's patch fixes "--restrict /" option. Added Robert Shaw's --exclude-fifo, --include-symbolic-links, etc. options. Added Maximilian Mehnert's fix for too many open files bug. == New in v0.13.4 (2004/01/31) Checked in patch by John Goerzen to support Mac OS X Finder information. As John says: ____ Specifically, it adds storage of: * 4-byte creator * 4-byte type * integer flags * dual integer location Much thanks to John for adding this useful feature all by himself! ____ Added --compare and --compare-at-time switches for comparing a directory with the backup information saved about it. Thanks to Erik Forsberg, who noticed that this feature was missing. Regressing and restoring should now take less memory when processing large directories (noticed by Luke Mewburn and others). When regressing, remove mirror_metadata and similar increments first. This will hopefully help regressing a backup that failed because disk was full (reported by Erik Forsberg). Fixed remote quoting errors found by Daniel Drucker. Fixed handling of (lack of) daylight savings time. Earlier bug would cause some files to be marked an hour later. Thanks to Troels Arvin and Farkas Levente for bug report. Altered file selection when restoring so excluded files will not be deleted from the target dir. The old behavior was technically intended and documented but not very convenient. Thanks to Oliver Kaltenecker for bug report. Fixed error when --restrict path given with trailing backslash. Bug report by Åke Brännström. Fixed many functions like --list-increments, --remove-older-than, etc. which previously didn't work with filename quoting. Thanks to Vinod Kurup for detailed bug report. == New in v0.13.3 (2003/10/14) Fixed some of the --restrict options which would cause spurious violation errors. --list-changed-since and --list-at-time now work remotely. Thanks to Morten Werner Olsen for bug report. Fixed logic bug that could make restoring extremely slow and waste memory. Thanks for Jacques Botha for report. Fixed bug restoring some directories when mirror_metadata file was missing (as when made by 0.10.x version). Regressing and restoring as non-root user now works on directories that contain unreadable files and directories as long as they are owned by that user. Bug report by Arkadiusz Miskiewicz. Hopefully this is the last of the unreadable file bugs... Rewrote hard link tracking system. New way should use less memory. Fixed bug causing rdiff-backup to crash when backing up from system supporting EAs/ACLs to one that didn't. == New in v0.13.2 (2003/09/16) Change ownership policy and added --user-mapping-file and --group-mapping-file switches. See man page for more information. Added option --never-drop-acls to cause fatal error instead of dropping any acls or acl entries. Thanks to Greg Freemyer for suggestion. Specified socket type as SOCK_STREAM. (Error reported by Erik Forsberg.) Fixed bug backing up unreadable regular files and directories when rdiff-backup is run by root on the source site and non-root on the destination side. (Reported by Troels Arvin and Arkadiusz Miskiewicz.) If there is data missing from the destination dir (for instance if a user mistakenly deletes it), only warn when restoring, instead of exiting with error. Fixed bug in EA/ACL restoring, noticed by Greg Freemyer. Updated quoting of filenames and extended attributes names to match forthcoming attr/facl utilities. Strange characters should now be properly escaped. Fixed problems with --restrict options that would cause proper sessions to fail. Thanks to Randall Nortman for error report. Added new time specification by backup number. So now you can '--remove-older-than 2B' or '--list-at-time 0B'. Original suggestion by Alan Bailward. File examples.html added to distribution; examples section removed from man page. Removed option --no-change-dir-inc-perms. Instead when copying permissions to directory increments, mask with 0777. == New in v0.13.1 (2003/08/08) Restore of archives made by 0.10.x and earlier fixed, although hard link information is not restored unless it is current in the mirror. (Bug reported by Jeff Lessem.) Fixed problem with door files locally when repository is remote. (Reported by Robert Weber.) Patch by Jeffrey Marshall fixes socket/fifo recognition on Mac OS X (which apparently has buggy macros). Patch by Jeffrey Marshall fixes --calculate-average mode, which seems to have broken recently. rdiff-backup should now work and build with python 2.3. Thanks to Arkadiusz Miskiewicz and Arkadiusz Patyk for bug reports and a patch. rdiff-backup now builds and requires librsync 0.9.6. This version should be much better than the old one and everyone should probably upgrade. Much thanks to Donovan Baarda for all the work that went into this release. == New in v0.13.0 (2003/07/22) To prevent the buildup of confusing and error-prone options, the capabilities of the source and destination file systems are now autodetected. Detected features include allowed characters, extended attributes, access control lists, hard links, ownership, and directory fsyncing. Options such as --windows-mode, --chars-to-quote, --quoting-char, and --windows-restore-mode have been removed. Now rdiff-backup supports user extended attributes (EAs). To take advantage of this you will need the python module pyxattr and a file system that supports EAs. Thanks to Greg Freemyer for valuable discussion. Support for access control lists (ACLs) was also added. An ACL capable file system and the python package pylibacl (which exports the posix1e module) are required. Thanks to Greg Freemyer for valuable discussion. Thanks to patches by Daniel Hazelbaker, rdiff-backup now reads and writes Mac OS X style resource forks! **** Warning **** The above features are new to this development release, and it is difficult to test all the possibly combinations of source and destination file systems. They should not be considered stable. However, help would be appreciated testing these new features. **** Warning #2 **** rdiff-backup records ACL and EA information in files designed to be compatible with the utilities "getfacl" and "getfattr". However, there is a possible security hole in both these formats (see http://acl.bestbits.at/pipermail/acl-devel/2003-June/001498.html). rdiff-backup's format will be fixed when getf{attr|acl}'s is. Added --list-increment-sizes switch, which tells you how much space the various backup files take up. (Suggested by Andrew Bressen) Although it should be detected automatically, can avoid copying permissions to directory increments with --no-change-dir-inc-perms. (Problem on FreeBSD when backing up sticky directories reported by Troels Arvin.) Fixed bug with --check-destination and --windows-mode reported by Tucker Sylvestro. The librsync blocksize is now chosen based on filesize. This should make operations on large files faster (in some cases, orders of magnitude faster). Thanks to Ty! Boyack for bringing this issue to my attention. == New in v0.12.0 (2003/06/26) Fixed (?) bug that caused crash when file changes type from regular file in middle of download (reported by Ty! Boyack). Failure to construct regular file in regression/restoration only causes warning, not fatal error. Removed --exclude-mirror option. (Probably no one uses this, and it adds clutter.) --include and --exclude options should work now with restores, with some speed penalty. == New in v0.11.5 (2003/06/20) Added EDEADLOCK to the list of skippable errors. (Thanks to Dave Kempe for report.) Added --list-at-time option at request of Farkas Levente. Various fixes for backing up onto windows directories. Thanks to Keith Edmunds for bug reports and testing. Fixed possible crash when a file would be deleted while being processed (reported by Robert Weber). Handle better cases when there are two files with the same name in the same directory. Added --windows-restore switch, for use when when restoring from a windows-style file system to a normal one. Use --windows-mode when backing up. Scott Bender's patch fixes backing up hard links when first linked file is quoted. == New in v0.11.4 (2003/03/15) Fixed bug incrementing sockets whose filenames were pretty long, but not super long. Reported by Olivier Mueller. Added Albert Chin-A-Young's patch to add a few options to the setup.py install script. Apparently fixed rare utime type bug. Thanks to Christian Skarby for report and testing. Added detailed file_statistics (in addition to session_statistics) as requested by Dean Gaudet. Disable with --no-file-statistics option. Minor speed enhancements. == New in v0.11.3 (2003/03/04) Fixed a number of bugs reported by Olivier Mueller: .... Brought some old parts of the man page up-to-date. Fixed bug if unrecoverable error on second backup to a directory. Fixed spurious error message that could appear after a successful backup. --print-statistics option works again (before it would silently ignored). Fixed cache pipeline overflow bug. This error could appear on large remote backups when many files have not changed. .... == New in v0.11.2 (2003/03/01) Fixed seg fault bug reported by a couple sparc/openbsd users. Thanks to Dave Steinberg for giving me an account on his system for testing. Re-enabled --windows-mode and filename quoting. Fixed selection bug: In 0.11.1, files which were included in one backup would be automatically included in the next. Now you can include/exclude files session-by-session. Fixed ownership compare bug: In 0.11.1, backups where the destination side was not root would preserve ownership information by recording it in the metadata file. However, mere ownership changes would not trigger creation of new increments. This has been fixed. Added the --no-inode-compare switch. You probably don't need to use it though. If a special file cannot be created on the destination side, a 0 length regular file will be written instead as a placeholder. (Restores should work fine because of the metadata file.) Yet another error handling strategy (hopefully this is the last one for a while, because this stuff isn't very exciting, and takes a long time to write): .... All recoverable errors are classified into one of three groups: ListErrors, UpdateErrors, and SpecialFileErrors. rdiff-backup's reaction to each error is more formally defined (see the error policy page, currently at http://rdiff-backup.stanford.edu/error_policy.html). rdiff-backup makes no attempt to recover or clean up after unrecoverable errors. However, it now uses fsync() to increment the destination directory in a reversable way. If there is an error, the next backup will regress the destination directory into its state before the aborted backup. The above process can be done without a backup with the --check-destination-dir option. .... Improved error logging. Instead of the old haphazard reporting method, which sometimes didn't indicate the file an error occurred on, now all recoverable errors are reported in a standard format and also written to the error_log.