[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to name an archive
- To: tarsnap-users@tarsnap.com
- Subject: Re: how to name an archive
- From: Bob Eager <rde@tavi.co.uk>
- Date: Wed, 1 Jun 2016 21:56:33 +0100
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUwXjFLc0vD0cS7y7zw9PDZ4tkWSRaVrZZ+m39qi2tXfVj////7+/utwK4IPggAOAAJUUA7AAABKklEQVQ4jWPYjQMwDFYJp0NKEKCNJmEf9h8CsimXiL2e33s3/e7F7K2Cs3f3dCMkQkMKj4YuCY3K3iR+e7fMaiSjvkX0/5cFGrWpe2uLzOpaExUVqMS/8PX/Re5ey960OLBTZpFA8+IlSBKPQ92zNyUUBsosN58uIY0k8f+/ONCoYytkVuhWzVwNkYiYbqk5M3NmOVBi41YZ8RsGF7shEtFb5KJ3r969CyixM7OTPeFUxG2IxLO8/9/SvqXlc+/x3h295YzLlj2nIRJQj//nRvc5TEIal8RsXBLVuCQwIgoq/u80DomP6HEOk/iOS+IJLonZOCT+ReOQ+Lkbh0QKLonbOCR+7MYhsRqHBJrVcIl/1TgklqKLQyQ+tGKIgyQOqXpjig94diZRAgAXmDX6jyWafAAAAABJRU5ErkJggg======
- In-reply-to: <6C098838-3A57-423C-B649-38FAA68091F4@gmail.com>
- References: <6C098838-3A57-423C-B649-38FAA68091F4@gmail.com>
Wrong quotes. You have used the backward quote (`), which means
something special to the shell (although it is a form that is
deprecated). It means 'run a command called pictures...'
Use single quotes (') to suppress any interpretation of what's inside,
or double quotes (") which is usually OK.
On Wed, 1 Jun 2016 13:44:54 -0700
Sarah Alawami <marrie12@gmail.com> wrote:
> Ok, I'm doing a test run on a script but I can't figure out why this
> is happening. I pt the name of the archive between ` marks including
> time and date format I wanted. I got the following output.
>
>
> pictures: command not found
>
> It then lists the files that I guess are being uploaded so now I'm a
> bit confused.
>
> Here is the script.
>
> #!/bin/sh
>
> /usr/local/bin/tarsnap -c \
> -v -f `pictures and music `date +%D-%M-%Y_%H-%M`` \
> /users/sa/music /users/sa/movies /users/sa/pictures
> # End of the script...
>
>
> Do I have the right idea here? It looks like it half way works but it
> is not naming the archive what I want to name it. Once I get this set
> up I'll never need to worry again, I hope lol!
>
> Everyone be blessed and have a happy wednesday.