I was create a tar script to make a backup of / directory on flash drive with exluding these folders:
/lost+found - /mnt - /media - /proc - /sys - /tmp
Here's a fragment of script:
sudo tar -zcpf $backup_dir/$now/backup.tar.gz / --exclude=/lost+found/* --exclude=/mnt/* --exclude=/media/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/*
And it was done without any errors, but when I wanted to restore this to test location to check that script is correct the screen shows information below
tar: boot: implausibly old time stamp 1970-01-01 01:00:00
Here is a fragment of untar script
sudo tar -xzpf $backup_source/$data/backup.tar.gz -C /home/pi/test
My problem is with unzip file to test location. OS: Raspbian (on raspberry pi) based on Debian
What I must do to unzip file correctly to directory /home/pi/test ?