-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax error in expression in free space check #72
Comments
Did it actually show
instead of
|
For your context: I tweaked the script a little. At first it failed at ln. 789, I thought it was something wrong with the GiB calculation, then I just changed that line to |
The script used to use but a week ago, in v3.0.51, I changed it to I suspect if you run the following command you'll get 2 results
My /volume1 has a symlink that points to a remote mounted CIFS share so I'm also seeing 2 results:
Assuming you are seeing the same thing the fix will be easy:
So line 770 would be changed to:
|
v3.0.53 - Bug fix checking target volume free space when there's a symlink on the volume. Issue #72 - e.g. A symlink pointing to folder on same volume, another volume or another device.
Thank you Dave, I believe that's the exact cause. I have enabled "visible snapshots" in some shared folders, turns out under the hood the system just created links pointing these snapshot folders, so there are multiple lines for free space. (synogear) root@DS1522p:/volume1/homes/zzy# df | grep /volume1
/dev/mapper/cachedev_2 18739479184 12267040596 6472438588 66% /volume1
/dev/mapper/cachedev_2 18739479184 12267040596 6472438588 66% /volume1/medialibrary/#snapshot
(synogear) root@DS1522p:/volume1/homes/zzy# df | grep /volume1 | awk '{print $4}'
6472438612
6472438612
(synogear) root@DS1522p:/volume1/homes/zzy# df | grep /volume2
/dev/mapper/cachedev_1 1811939328 247280236 1564659092 14% /volume2
/dev/mapper/cachedev_1 1811939328 247280236 1564659092 14% /volume2/docker/#snapshot
|
Fixed in v3.0.53 |
Hi, I been trying to use the script, release 3.0.52 to first backup then migrate container manager to another volume. It did succeed in backing up other packages however failed on container manager. Here's some log with trace on:
So the free space check is correct, it is 6609783028, which is ~6.15TiB and the
@docker
folder size is 128881640, which is ~123GB. It seems some error happened here at ln 786 and the script thought there is no free space.The text was updated successfully, but these errors were encountered: