goreleaser / nfpm

nFPM is Not FPM - a simple deb, rpm, apk, ipk, and arch linux packager written in Go
https://nfpm.goreleaser.com/
MIT License
2.17k stars 157 forks source link

Directories not included in glob #45

Closed stephenjamieson closed 5 years ago

stephenjamieson commented 5 years ago

I am attempting to package duplicati as a headless package so I don't have to mess with configs every time. Thought I'd give nfpm a whirl. It seems the files parameter doesn't include directories under the glob?

» nfpm -v
0.10.0
# nfpm example config file
name: "duplicati-headless"
arch: "amd64"
platform: "linux"
version: "v2.0.4.5"
section: "default"
priority: "extra"
replaces:
- duplicati-headless
provides:
- duplicati-headless
depends:
- mono-devel
# recommends on rpm packages requires rpmbuild >= 4.13
recommends:
# suggests on rpm packages requires rpmbuild >= 4.13
suggests:
conflicts:
- duplicati
maintainer:
description: |
  https://github.com/duplicati/duplicati/wiki/Headless-installation-on-Debian-or-Ubuntu
vendor: "duplicati"
homepage: "https://www.duplicati.com/download"
license: "GNU LGPL"
bindir: "/usr/local/bin"
files:
  ./bin/duplicati-cli: "/usr/local/bin/duplicat-cli"
  ./bin/duplicati-server: "/usr/local/bin/duplicati-server"
  ./duplicati/*: "/usr/lib/duplicati"
config_files:
  ./config/default_duplicati: "/etc/default/duplicati"
  ./config/duplicati_service: "/etc/systemd/system/duplicati.service"
overrides:
  deb:
    scripts:
      postinstall: ./scripts/postinstall.sh
      preremove: ./scripts/preremove.sh

in duplicati dir:

ls -alhn
total 15M
drwxr-x--- 12 1000 1000  119 Mar  5 20:01  .
drwxr-x---  6 1000 1000    7 Mar  5 20:28  ..
-rw-r-----  1 1000 1000  987 Nov 28 13:52  acknowledgements.txt
-rw-r-----  1 1000 1000 504K Nov 28 13:52  agsXMPP.dll
-rw-r-----  1 1000 1000 280K Nov 28 13:52  AlphaFS.dll
drwx------  2 1000 1000    5 Mar  5 20:01  alphavss
-rw-r-----  1 1000 1000  67K Nov 28 13:52  AlphaVSS.Common.dll
-rw-r-----  1 1000 1000 166K Nov 28 13:53  autoupdate.manifest
-rw-r-----  1 1000 1000 800K Nov 28 13:52  AWSSDK.Core.dll
-rw-r-----  1 1000 1000 351K Nov 28 13:52  AWSSDK.IdentityManagement.dll
-rw-r-----  1 1000 1000 586K Nov 28 13:52  AWSSDK.S3.dll
-rw-r-----  1 1000 1000 2.2M Nov 28 13:52  BouncyCastle.Crypto.dll
-rw-r-----  1 1000 1000  52K Nov 28 13:52  changelog.txt
-rw-r-----  1 1000 1000 111K Nov 28 13:52  CoCoL.dll
-rw-r-----  1 1000 1000 5.2K Nov 28 13:52  default_compressed_extensions.txt
-rw-r-----  1 1000 1000  32K Nov 28 13:52  Duplicati.CommandLine.BackendTester.exe
-rw-r-----  1 1000 1000 1.6K Nov 28 13:52  Duplicati.CommandLine.BackendTester.exe.config
-rw-r-----  1 1000 1000  19K Nov 28 13:52  Duplicati.CommandLine.BackendTool.exe
-rw-r-----  1 1000 1000 1.6K Nov 28 13:52  Duplicati.CommandLine.BackendTool.exe.config
-rw-r-----  1 1000 1000 130K Nov 28 13:52  Duplicati.CommandLine.exe
-rw-r-----  1 1000 1000 1.6K Nov 28 13:52  Duplicati.CommandLine.exe.config
-rw-r-----  1 1000 1000  55K Nov 28 13:52  Duplicati.CommandLine.RecoveryTool.exe
-rw-r-----  1 1000 1000 1.6K Nov 28 13:52  Duplicati.CommandLine.RecoveryTool.exe.config
-rw-r-----  1 1000 1000 330K Nov 28 13:52  Duplicati.GUI.TrayIcon.exe
-rw-r-----  1 1000 1000 1.6K Nov 28 13:52  Duplicati.GUI.TrayIcon.exe.config
-rw-r-----  1 1000 1000  60K Nov 28 13:52  Duplicati.Library.AutoUpdater.exe
-rw-r-----  1 1000 1000 1.6K Nov 28 13:52  Duplicati.Library.AutoUpdater.exe.config
-rw-r-----  1 1000 1000  29K Nov 28 13:52  Duplicati.Library.Backend.AlternativeFTP.dll
-rw-r-----  1 1000 1000  142 Nov 28 13:52  Duplicati.Library.Backend.AlternativeFTP.dll.config
-rw-r-----  1 1000 1000  32K Nov 28 13:52  Duplicati.Library.Backend.AmazonCloudDrive.dll
-rw-r-----  1 1000 1000  23K Nov 28 13:52  Duplicati.Library.Backend.AzureBlob.dll
-rw-r-----  1 1000 1000  39K Nov 28 13:52  Duplicati.Library.Backend.Backblaze.dll
-rw-r-----  1 1000 1000  31K Nov 28 13:52  Duplicati.Library.Backend.Box.dll
-rw-r-----  1 1000 1000  28K Nov 28 13:52  Duplicati.Library.Backend.CloudFiles.dll
-rw-r-----  1 1000 1000  145 Nov 28 13:52  Duplicati.Library.Backend.CloudFiles.dll.config
-rw-r-----  1 1000 1000  30K Nov 28 13:52  Duplicati.Library.Backend.Dropbox.dll
-rw-r-----  1 1000 1000  30K Nov 28 13:52  Duplicati.Library.Backend.File.dll
-rw-r-----  1 1000 1000  145 Nov 28 13:52  Duplicati.Library.Backend.File.dll.config
-rw-r-----  1 1000 1000  30K Nov 28 13:52  Duplicati.Library.Backend.FTP.dll
-rw-r-----  1 1000 1000  145 Nov 28 13:52  Duplicati.Library.Backend.FTP.dll.config
-rw-r-----  1 1000 1000  52K Nov 28 13:52  Duplicati.Library.Backend.GoogleServices.dll
-rw-r-----  1 1000 1000  18K Nov 28 13:52  Duplicati.Library.Backend.HubiC.dll
-rw-r-----  1 1000 1000  30K Nov 28 13:52  Duplicati.Library.Backend.Jottacloud.dll
-rw-r-----  1 1000 1000  24K Nov 28 13:52  Duplicati.Library.Backend.Mega.dll
-rw-r-----  1 1000 1000  76K Nov 28 13:52  Duplicati.Library.Backend.OneDrive.dll
-rw-r-----  1 1000 1000  41K Nov 28 13:52  Duplicati.Library.Backend.OpenStack.dll
-rw-r-----  1 1000 1000  23K Nov 28 13:52  Duplicati.Library.Backend.Rclone.dll
-rw-r-----  1 1000 1000  50K Nov 28 13:52  Duplicati.Library.Backend.S3.dll
-rw-r-----  1 1000 1000  145 Nov 28 13:52  Duplicati.Library.Backend.S3.dll.config
-rw-r-----  1 1000 1000  36K Nov 28 13:52  Duplicati.Library.Backend.SharePoint.dll
-rw-r-----  1 1000 1000  142 Nov 28 13:52  Duplicati.Library.Backend.SharePoint.dll.config
-rw-r-----  1 1000 1000  25K Nov 28 13:52  Duplicati.Library.Backend.Sia.dll
-rw-r-----  1 1000 1000  39K Nov 28 13:52  Duplicati.Library.Backend.SSHv2.dll
-rw-r-----  1 1000 1000  26K Nov 28 13:52  Duplicati.Library.Backend.TahoeLAFS.dll
-rw-r-----  1 1000 1000  28K Nov 28 13:52  Duplicati.Library.Backend.WEBDAV.dll
-rw-r-----  1 1000 1000  145 Nov 28 13:52  Duplicati.Library.Backend.WEBDAV.dll.config
-rw-r-----  1 1000 1000  34K Nov 28 13:52  Duplicati.Library.Compression.dll
-rw-r-----  1 1000 1000  145 Nov 28 13:52  Duplicati.Library.Compression.dll.config
-rw-r-----  1 1000 1000  23K Nov 28 13:52  Duplicati.Library.DynamicLoader.dll
-rw-r-----  1 1000 1000  145 Nov 28 13:52  Duplicati.Library.DynamicLoader.dll.config
-rw-r-----  1 1000 1000  29K Nov 28 13:52  Duplicati.Library.Encryption.dll
-rw-r-----  1 1000 1000  145 Nov 28 13:52  Duplicati.Library.Encryption.dll.config
-rw-r-----  1 1000 1000  36K Nov 28 13:53  Duplicati.Library.Interface.dll
-rw-r-----  1 1000 1000 1.9M Nov 28 13:53  Duplicati.Library.Localization.dll
-rw-r-----  1 1000 1000  25K Nov 28 13:53  Duplicati.Library.Logging.dll
-rw-r-----  1 1000 1000  145 Nov 28 13:52  Duplicati.Library.Logging.dll.config
-rw-r-----  1 1000 1000 885K Nov 28 13:53  Duplicati.Library.Main.dll
-rw-r-----  1 1000 1000  145 Nov 28 13:52  Duplicati.Library.Main.dll.config
-rw-r-----  1 1000 1000 104K Nov 28 13:53  Duplicati.Library.Modules.Builtin.dll
-rw-r-----  1 1000 1000  32K Nov 28 13:53  Duplicati.Library.OAuthHelper.dll
-rw-r-----  1 1000 1000  89K Nov 28 13:52  Duplicati.Library.Snapshots.exe
-rw-r-----  1 1000 1000 1.6K Nov 28 13:52  Duplicati.Library.Snapshots.exe.config
-rw-r-----  1 1000 1000  38K Nov 28 13:53  Duplicati.Library.UsageReporter.dll
-rw-r-----  1 1000 1000 124K Nov 28 13:53  Duplicati.Library.Utility.dll
-rw-r-----  1 1000 1000  147 Nov 28 13:52  Duplicati.Library.Utility.dll.config
-rw-r-----  1 1000 1000  17K Nov 28 13:53  Duplicati.License.dll
-rw-r-----  1 1000 1000 272K Nov 28 13:52  Duplicati.Server.exe
-rw-r-----  1 1000 1000 1.6K Nov 28 13:52  Duplicati.Server.exe.config
-rw-r-----  1 1000 1000  29K Nov 28 13:53  Duplicati.Server.Serialization.dll
-rw-r-----  1 1000 1000  18K Nov 28 13:52  Duplicati.Service.exe
-rw-r-----  1 1000 1000 1.6K Nov 28 13:52  Duplicati.Service.exe.config
-rw-r-----  1 1000 1000  13K Nov 28 13:53  Duplicati.Tools.dll
-rw-r-----  1 1000 1000  26K Nov 28 13:52  Duplicati.WindowsService.exe
-rw-r-----  1 1000 1000 1.6K Nov 28 13:52  Duplicati.WindowsService.exe.config
-rw-r-----  1 1000 1000  75K Nov 28 13:52  FasterHashing.dll
-rw-r-----  1 1000 1000 129K Nov 28 13:52  HttpServer.dll
drwx------ 30 1000 1000   32 Mar  5 20:01  licenses
drwx------  2 1000 1000    5 Mar  5 20:01  lvm-scripts
-rw-r-----  1 1000 1000 448K Nov 28 13:52  MailKit.dll
-rw-r-----  1 1000 1000 167K Nov 28 13:52  managed-lzma.dll
-rw-r-----  1 1000 1000 111K Nov 28 13:52  MegaApiClient.dll
-rw-r-----  1 1000 1000  22K Nov 28 13:52  Microsoft.Azure.KeyVault.Core.dll
-rw-r-----  1 1000 1000 655K Nov 28 13:52  Microsoft.Data.Edm.dll
-rw-r-----  1 1000 1000 1.5M Nov 28 13:52  Microsoft.Data.OData.dll
-rw-r-----  1 1000 1000 666K Nov 28 13:52  Microsoft.Data.Services.Client.dll
-rw-r-----  1 1000 1000 661K Nov 28 13:52  Microsoft.SharePoint.Client.dll
-rw-r-----  1 1000 1000 299K Nov 28 13:52  Microsoft.SharePoint.Client.Runtime.dll
-rw-r-----  1 1000 1000 1.1M Nov 28 13:52  Microsoft.WindowsAzure.Storage.dll
-rw-r-----  1 1000 1000 845K Nov 28 13:52  MimeKit.dll
-rw-r-----  1 1000 1000 6.7M Nov 28 13:52  MonoMac.dll
-rw-r-----  1 1000 1000  13K Nov 28 13:52  mozroots.exe
-rw-r-----  1 1000 1000 639K Nov 28 13:52  Newtonsoft.Json.dll
-rw-r-----  1 1000 1000  41K Nov 28 13:52  NGettext.dll
drwx------  2 1000 1000    6 Mar  5 20:01 'OSX Icons'
drwx------  2 1000 1000    4 Mar  5 20:01  OSXTrayHost
-rw-r-----  1 1000 1000 416K Nov 28 13:52  Renci.SshNet.dll
-rw-r-----  1 1000 1000 8.0K Nov 28 13:52  run-script-example.bat
-rw-r-----  1 1000 1000 7.5K Nov 28 13:52  run-script-example.sh
-rw-r-----  1 1000 1000  39K Nov 28 13:52  SharpAESCrypt.exe
-rw-r-----  1 1000 1000 446K Nov 28 13:52  SharpCompress.dll
drwx------  5 1000 1000    5 Mar  5 20:01  SQLite
-rw-r-----  1 1000 1000  18K Nov 28 13:52  SQLiteHelper.dll
drwx------  4 1000 1000    4 Mar  5 20:01  SVGIcons
-rw-r-----  1 1000 1000  81K Nov 28 13:52  System.Net.FtpClient.dll
-rw-r-----  1 1000 1000 125K Nov 28 13:52  System.Spatial.dll
-rw-r-----  1 1000 1000 8.0K Nov 28 13:52  UnixSupport.dll
drwx------  2 1000 1000    7 Mar  5 20:01  utility-scripts
drwx------  8 1000 1000   12 Mar  5 20:01  webroot
drwx------  2 1000 1000   11 Mar  5 20:01  win-tools

actually installed:

» ls -alh /usr/lib/duplicati 
total 26M
drwxr-xr-x   2 root root 8.0K Mar  5 20:28 .
drwxr-xr-x 150 root root  12K Mar  5 20:28 ..
-rw-r-----   1 root root  987 Mar  5 20:18 acknowledgements.txt
-rw-r-----   1 root root 504K Mar  5 20:18 agsXMPP.dll
-rw-r-----   1 root root 280K Mar  5 20:18 AlphaFS.dll
-rw-r-----   1 root root  67K Mar  5 20:18 AlphaVSS.Common.dll
-rw-r-----   1 root root 166K Mar  5 20:18 autoupdate.manifest
-rw-r-----   1 root root 800K Mar  5 20:18 AWSSDK.Core.dll
-rw-r-----   1 root root 351K Mar  5 20:18 AWSSDK.IdentityManagement.dll
-rw-r-----   1 root root 586K Mar  5 20:18 AWSSDK.S3.dll
-rw-r-----   1 root root 2.2M Mar  5 20:18 BouncyCastle.Crypto.dll
-rw-r-----   1 root root  52K Mar  5 20:18 changelog.txt
-rw-r-----   1 root root 111K Mar  5 20:18 CoCoL.dll
-rw-r-----   1 root root 5.2K Mar  5 20:18 default_compressed_extensions.txt
-rw-r-----   1 root root  32K Mar  5 20:18 Duplicati.CommandLine.BackendTester.exe
-rw-r-----   1 root root 1.6K Mar  5 20:18 Duplicati.CommandLine.BackendTester.exe.config
-rw-r-----   1 root root  19K Mar  5 20:18 Duplicati.CommandLine.BackendTool.exe
-rw-r-----   1 root root 1.6K Mar  5 20:18 Duplicati.CommandLine.BackendTool.exe.config
-rw-r-----   1 root root 130K Mar  5 20:18 Duplicati.CommandLine.exe
-rw-r-----   1 root root 1.6K Mar  5 20:18 Duplicati.CommandLine.exe.config
-rw-r-----   1 root root  55K Mar  5 20:18 Duplicati.CommandLine.RecoveryTool.exe
-rw-r-----   1 root root 1.6K Mar  5 20:18 Duplicati.CommandLine.RecoveryTool.exe.config
-rw-r-----   1 root root 330K Mar  5 20:18 Duplicati.GUI.TrayIcon.exe
-rw-r-----   1 root root 1.6K Mar  5 20:18 Duplicati.GUI.TrayIcon.exe.config
-rw-r-----   1 root root  60K Mar  5 20:18 Duplicati.Library.AutoUpdater.exe
-rw-r-----   1 root root 1.6K Mar  5 20:18 Duplicati.Library.AutoUpdater.exe.config
-rw-r-----   1 root root  29K Mar  5 20:18 Duplicati.Library.Backend.AlternativeFTP.dll
-rw-r-----   1 root root  142 Mar  5 20:18 Duplicati.Library.Backend.AlternativeFTP.dll.config
-rw-r-----   1 root root  32K Mar  5 20:18 Duplicati.Library.Backend.AmazonCloudDrive.dll
-rw-r-----   1 root root  23K Mar  5 20:18 Duplicati.Library.Backend.AzureBlob.dll
-rw-r-----   1 root root  39K Mar  5 20:18 Duplicati.Library.Backend.Backblaze.dll
-rw-r-----   1 root root  31K Mar  5 20:18 Duplicati.Library.Backend.Box.dll
-rw-r-----   1 root root  28K Mar  5 20:18 Duplicati.Library.Backend.CloudFiles.dll
-rw-r-----   1 root root  145 Mar  5 20:18 Duplicati.Library.Backend.CloudFiles.dll.config
-rw-r-----   1 root root  30K Mar  5 20:18 Duplicati.Library.Backend.Dropbox.dll
-rw-r-----   1 root root  30K Mar  5 20:18 Duplicati.Library.Backend.File.dll
-rw-r-----   1 root root  145 Mar  5 20:18 Duplicati.Library.Backend.File.dll.config
-rw-r-----   1 root root  30K Mar  5 20:18 Duplicati.Library.Backend.FTP.dll
-rw-r-----   1 root root  145 Mar  5 20:18 Duplicati.Library.Backend.FTP.dll.config
-rw-r-----   1 root root  52K Mar  5 20:18 Duplicati.Library.Backend.GoogleServices.dll
-rw-r-----   1 root root  18K Mar  5 20:18 Duplicati.Library.Backend.HubiC.dll
-rw-r-----   1 root root  30K Mar  5 20:18 Duplicati.Library.Backend.Jottacloud.dll
-rw-r-----   1 root root  24K Mar  5 20:18 Duplicati.Library.Backend.Mega.dll
-rw-r-----   1 root root  76K Mar  5 20:18 Duplicati.Library.Backend.OneDrive.dll
-rw-r-----   1 root root  41K Mar  5 20:18 Duplicati.Library.Backend.OpenStack.dll
-rw-r-----   1 root root  23K Mar  5 20:18 Duplicati.Library.Backend.Rclone.dll
-rw-r-----   1 root root  50K Mar  5 20:18 Duplicati.Library.Backend.S3.dll
-rw-r-----   1 root root  145 Mar  5 20:18 Duplicati.Library.Backend.S3.dll.config
-rw-r-----   1 root root  36K Mar  5 20:18 Duplicati.Library.Backend.SharePoint.dll
-rw-r-----   1 root root  142 Mar  5 20:18 Duplicati.Library.Backend.SharePoint.dll.config
-rw-r-----   1 root root  25K Mar  5 20:18 Duplicati.Library.Backend.Sia.dll
-rw-r-----   1 root root  39K Mar  5 20:18 Duplicati.Library.Backend.SSHv2.dll
-rw-r-----   1 root root  26K Mar  5 20:18 Duplicati.Library.Backend.TahoeLAFS.dll
-rw-r-----   1 root root  28K Mar  5 20:18 Duplicati.Library.Backend.WEBDAV.dll
-rw-r-----   1 root root  145 Mar  5 20:18 Duplicati.Library.Backend.WEBDAV.dll.config
-rw-r-----   1 root root  34K Mar  5 20:18 Duplicati.Library.Compression.dll
-rw-r-----   1 root root  145 Mar  5 20:18 Duplicati.Library.Compression.dll.config
-rw-r-----   1 root root  23K Mar  5 20:18 Duplicati.Library.DynamicLoader.dll
-rw-r-----   1 root root  145 Mar  5 20:18 Duplicati.Library.DynamicLoader.dll.config
-rw-r-----   1 root root  29K Mar  5 20:18 Duplicati.Library.Encryption.dll
-rw-r-----   1 root root  145 Mar  5 20:18 Duplicati.Library.Encryption.dll.config
-rw-r-----   1 root root  36K Mar  5 20:18 Duplicati.Library.Interface.dll
-rw-r-----   1 root root 1.9M Mar  5 20:18 Duplicati.Library.Localization.dll
-rw-r-----   1 root root  25K Mar  5 20:18 Duplicati.Library.Logging.dll
-rw-r-----   1 root root  145 Mar  5 20:18 Duplicati.Library.Logging.dll.config
-rw-r-----   1 root root 885K Mar  5 20:18 Duplicati.Library.Main.dll
-rw-r-----   1 root root  145 Mar  5 20:18 Duplicati.Library.Main.dll.config
-rw-r-----   1 root root 104K Mar  5 20:18 Duplicati.Library.Modules.Builtin.dll
-rw-r-----   1 root root  32K Mar  5 20:18 Duplicati.Library.OAuthHelper.dll
-rw-r-----   1 root root  89K Mar  5 20:18 Duplicati.Library.Snapshots.exe
-rw-r-----   1 root root 1.6K Mar  5 20:18 Duplicati.Library.Snapshots.exe.config
-rw-r-----   1 root root  38K Mar  5 20:18 Duplicati.Library.UsageReporter.dll
-rw-r-----   1 root root 124K Mar  5 20:18 Duplicati.Library.Utility.dll
-rw-r-----   1 root root  147 Mar  5 20:18 Duplicati.Library.Utility.dll.config
-rw-r-----   1 root root  17K Mar  5 20:18 Duplicati.License.dll
-rw-r-----   1 root root 272K Mar  5 20:18 Duplicati.Server.exe
-rw-r-----   1 root root 1.6K Mar  5 20:18 Duplicati.Server.exe.config
-rw-r-----   1 root root  29K Mar  5 20:18 Duplicati.Server.Serialization.dll
-rw-r-----   1 root root  18K Mar  5 20:18 Duplicati.Service.exe
-rw-r-----   1 root root 1.6K Mar  5 20:18 Duplicati.Service.exe.config
-rw-r-----   1 root root  13K Mar  5 20:18 Duplicati.Tools.dll
-rw-r-----   1 root root  26K Mar  5 20:18 Duplicati.WindowsService.exe
-rw-r-----   1 root root 1.6K Mar  5 20:18 Duplicati.WindowsService.exe.config
-rw-r-----   1 root root  75K Mar  5 20:18 FasterHashing.dll
-rw-r-----   1 root root 129K Mar  5 20:18 HttpServer.dll
-rw-r-----   1 root root 448K Mar  5 20:18 MailKit.dll
-rw-r-----   1 root root 167K Mar  5 20:18 managed-lzma.dll
-rw-r-----   1 root root 111K Mar  5 20:18 MegaApiClient.dll
-rw-r-----   1 root root  22K Mar  5 20:18 Microsoft.Azure.KeyVault.Core.dll
-rw-r-----   1 root root 655K Mar  5 20:18 Microsoft.Data.Edm.dll
-rw-r-----   1 root root 1.5M Mar  5 20:18 Microsoft.Data.OData.dll
-rw-r-----   1 root root 666K Mar  5 20:18 Microsoft.Data.Services.Client.dll
-rw-r-----   1 root root 661K Mar  5 20:18 Microsoft.SharePoint.Client.dll
-rw-r-----   1 root root 299K Mar  5 20:18 Microsoft.SharePoint.Client.Runtime.dll
-rw-r-----   1 root root 1.1M Mar  5 20:18 Microsoft.WindowsAzure.Storage.dll
-rw-r-----   1 root root 845K Mar  5 20:18 MimeKit.dll
-rw-r-----   1 root root 6.7M Mar  5 20:18 MonoMac.dll
-rw-r-----   1 root root  13K Mar  5 20:18 mozroots.exe
-rw-r-----   1 root root 639K Mar  5 20:18 Newtonsoft.Json.dll
-rw-r-----   1 root root  41K Mar  5 20:18 NGettext.dll
-rw-r-----   1 root root 416K Mar  5 20:18 Renci.SshNet.dll
-rw-r-----   1 root root 8.0K Mar  5 20:18 run-script-example.bat
-rw-r-----   1 root root 7.5K Mar  5 20:18 run-script-example.sh
-rw-r-----   1 root root  39K Mar  5 20:18 SharpAESCrypt.exe
-rw-r-----   1 root root 446K Mar  5 20:18 SharpCompress.dll
-rw-r-----   1 root root  18K Mar  5 20:18 SQLiteHelper.dll
-rw-r-----   1 root root  81K Mar  5 20:18 System.Net.FtpClient.dll
-rw-r-----   1 root root 125K Mar  5 20:18 System.Spatial.dll
-rw-r-----   1 root root 8.0K Mar  5 20:18 UnixSupport.dll

Shouldn't the glob cover the entire directory and all subdirectories?

caarlos0 commented 5 years ago

./duplicati/*:

should probably be ./duplicati/**/*

* covers only the files inside the folder, not subdirs and its files...

stephenjamieson commented 5 years ago

Ah, so since there are additional subdirectories under there, sounds like I'll need multiple lines

./duplicati/**/**/**
./duplicati/**/**/**/**

etc?

caarlos0 commented 5 years ago

not really, just **/*

if you did */*, then yes, you would have to know how many levels to glob and do something like */*/*/*/*/*...

caarlos0 commented 5 years ago

btw you can test it locally with ls ./duplicati/**/* vs ls ./duplicati/*/*

stephenjamieson commented 5 years ago

I actually did have ./duplicati/**/, but I thought it didn't work, perhaps I did something else wrong at the time. Anyways, thanks for the pointers.

caarlos0 commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.