You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

5 lines
168 B

  1. #!/bin/bash
  2. rm /home/rinri/edu/sna/funny-dir_*
  3. FNAME="$(date '+/home/rinri/edu/sna/funny-dir_%b_%d_%Y_%H_%M_%S.tar.gz')"
  4. tar caf "$FNAME" /home/rinri/edu/sna/funny-dir