[openstack-dev] [Freezer] Replace Gnu Tar with DAR

Dieterly, Deklan deklan.dieterly at hpe.com
Fri May 13 22:56:38 UTC 2016


When using incremental backups, tar will not handle removing a dir and
then renaming another dir to the removed dir.


dek at dek-HP-Z620-Workstation:~/backup-test$ tar --extract
--listed-incrementa=/dev/null --file backup.2.tar
tar: Cannot rename Œbackup/dir1¹ to Œbackup/dir2¹: Directory not empty
tar: Exiting with failure status due to previous errors



Here are the steps to reproduce.

 1845  mkdir backup
 1846  mkdir backup/dir1
 1847  mkdir backup/dir2
 1848  echo "aa" > backup/dir1/dir1-file1
 1849  echo "aa" > backup/dir2/dir2-file1
 1852  tar --create --file=backup.tar --listed-incremental=./listed-incr
backup
 1854  rm -rf backup/dir2
 1855  mv backup/dir1 backup/dir2
 1856  tar --create --file=backup.2.tar --listed-incremental=./listed-incr
backup
 1859  tar --extract --listed-incrementa=/dev/null --file backup.tar
 1861  tar --extract --listed-incrementa=/dev/null --file backup.2.tar


This seems to be a well known, long-standing issue with tar.
-- 
Deklan Dieterly

Senior Systems Software Engineer
HPE




On 5/13/16, 4:33 PM, "Fox, Kevin M" <Kevin.Fox at pnnl.gov> wrote:

>Whats the issue?
>________________________________________
>From: Dieterly, Deklan [deklan.dieterly at hpe.com]
>Sent: Friday, May 13, 2016 3:07 PM
>To: openstack-dev at lists.openstack.org
>Subject: [openstack-dev] [Freezer] Replace Gnu Tar with DAR
>
>Does anybody see any issues if Freezer used DAR instead of Gnu Tar? DAR
>seems to handle a particular use case that Freezer has while Gnu Tar does
>not.
>--
>Deklan Dieterly
>
>Senior Systems Software Engineer
>HPE
>
>
>__________________________________________________________________________
>OpenStack Development Mailing List (not for usage questions)
>Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>__________________________________________________________________________
>OpenStack Development Mailing List (not for usage questions)
>Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




More information about the OpenStack-dev mailing list