Search:

Type: Posts; User: Paddy Landau; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.10 seconds.

  1. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    I believe you. It just doesn't work for me. I've done exactly as you describe, but it doesn't work.

    Somehow, we must have different settings somewhere.
  2. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    Yes, I have tested it thoroughly.
  3. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    What can I say? It doesn't!

    I tried both with and without the quotation marks.
  4. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    I've already tried this, but it doesn't work.

    I've found that whenever I include wildcards or quotation marks, it causes failure. I have no clue why, though.

    I ended up using the format that...
  5. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    Sorry for the late reply — Ubuntu Forums frequently doesn't send me notifications.

    My shopt and yours are identical, so it remains a mystery!
  6. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    That's what I expected, but don't get.

    I am baffled as to why that's different for you, but not for me!

    I wonder if there's some Bash setting that you and I have different?
  7. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    That would indeed happen if I were to quote the variable:

    rsync ... "${EXCLUDE}" ...
    But I don't quote the variable:

    rsync ... ${EXCLUDE} ...
    Anyway, I did test both with and without. The...
  8. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    No, you misunderstand. It's not a file literally called '/*'.

    This is a parameter that's passed to rsync, which (in my case) passes it to the remote server. The remote server expands it there.
    ...
  9. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    That makes interesting reading, thank you!

    I'm going to print it out and experiment.
  10. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    That's a good tip, thanks, but my rsync has been thoroughly tested, and I know that it works.
  11. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    Yes, thank you, that would have been a good idea had there not been another workaround. There's always a chance of a catastrophic problem with such an approach, of course, but sometimes you don't...
  12. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    I've figured out a workaround: Use --exclude-from.

    I create a temporary file, and either leave it empty or write "/*" to it depending on what's needed.

    So…

    EXCLUDE_FILE=$( mktemp...
  13. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    Sorry, I'm not entirely sure what you are suggesting. The rsync transfers a large amount of data in quite a deep level of folders. The condition determines which folders to transfer, and while most...
  14. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    Yes. It makes no difference.

    Because it's a complex rsync with several other options, and I wish to avoid duplication (that's one way that bugs creep in over time).
  15. [ubuntu] Re: Bash: How can I pass a wildcard as a parameter within a script?

    In Bash, using or not using curly brackets is identical, unless there is an ambiguous situation, in which curly brackets are required. (This is an unambiguous situation, so either way would work.)
    ...
  16. [ubuntu] Bash: How can I pass a wildcard as a parameter within a script?

    In a Bash script:

    I need to pass an exclude option with a wildcard to rsync. The twist is that sometimes the wildcard needs to be omitted.

    Without a wildcard, this is easy:

    if...
  17. [ubuntu] Re: Gnome Software says that updates cannot be installed

    … And it's back again, both yesterday and today.

    Still pretty weird!
  18. [ubuntu] Re: Could we create an immutable incremental backup system to protect against ransomw

    Thank you for all of your replies. It looks as though creating this sort of backup requires good technical knowledge, and maybe a remote server that I personally look after!

    Thanks, that worked.
    ...
  19. [ubuntu] Re: Could we create an immutable incremental backup system to protect against ransomw

    OK. The advertising on the Veeam website shows something rather different. Maybe it's changed? Or maybe its advertising is targeted to a different market?

    Woah… I didn't realise how much storage...
  20. [ubuntu] Re: Could we create an immutable incremental backup system to protect against ransomw

    Unfortunately, the backups are almost 90Gb now, and of course it will only grow with time!

    This would be a problem!

    I hadn't heard of this. I'll check it out.

    I do this already, including a...
  21. [ubuntu] Could we create an immutable incremental backup system to protect against ransomware?

    In a world where ransomware has become clever enough to mess with backups, I was wondering how to create incremental backups, but make each increment immutable?

    At the moment, I use two daily...
  22. [ubuntu] Re: Gnome Software says that updates cannot be installed

    Now. out of the blue, it's working again.

    I don't know… Pretty weird!
  23. [ubuntu] Gnome Software says that updates cannot be installed

    Every so often, gnome-software gives the error, "Unable to download updates: you do not have permission to install software".
    288569
    Usually, this goes away when I reboot.

    Today, it is...
  24. [ubuntu] Re: Computer powers down while I'm away: intermittent

    What specifically do I need to look for? There's a lot of stuff in that folder!
  25. [ubuntu] Re: Computer powers down while I'm away: intermittent

    Thanks for your reply, @Autodave.

    I ran a BIOS check against the system, including a RAM test, and everything came up clean.

    No. The keyboard and mouse are wireless, attached via a USB dongle,...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4