Discussion:
[Bug-tar] tar command : Something strange is happening
Emilio García
2018-12-05 18:45:00 UTC
Permalink
Dear,

I am writing to you because I have updated the rc in order to make a
backup when the system starts up. The problem is when I log into my
Debian 9 and tar command is running, I check the file which it is
backing up and I see the following:

Last login: Wed Dec 5 19:28:41 2018
***@debian:~$ lla backups/
total 2760288
drwxr-xr-x 2 emiliogq emiliogq 4096 Dec 5 19:39 .
drwxr-xr-x 21 emiliogq emiliogq 4096 Dec 5 19:39 ..
-rw-r--r-- 1 emiliogq emiliogq 1033557297 Dec 4 19:47
s-c-fw.backup.20181204.194516.tar.gz
-rw-r--r-- 1 emiliogq emiliogq 1033557297 Dec 5 19:06
s-c-fw.backup.20181205.190525.tar.gz
-RW-R--R-- 1 EMILIOGQ EMILIOGQ 131072 DEC 5 19:39
S-C-FW.BACKUP.20181205.193920.TAR.GZ
-rw-r--r-- 1 emiliogq emiliogq 759267328 Dec 5 19:40
s-c-fw.backup.20181205.193931.tar.gz

Two files are created. Could you tell me if there is something that I am
not taking into account?

sudo nano /etc/init.d/backup

The command what I am using is:

sudo -u emiliogq nohup TAR -ZCF /HOME/EMILIOGQ/BACKUPS/$FILENAME
/HOME/EMILIOGQ/WORKSPACE/S-C-FW/ &

Thanks in advance,
Emilio Garcia.

Loading...