datatruck 0.36.8 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config.schema.json +168 -108
- package/package.json +2 -2
package/config.schema.json
CHANGED
|
@@ -759,11 +759,12 @@
|
|
|
759
759
|
"enabled": {
|
|
760
760
|
"type": "boolean"
|
|
761
761
|
},
|
|
762
|
-
"
|
|
763
|
-
"
|
|
764
|
-
"
|
|
765
|
-
"
|
|
766
|
-
|
|
762
|
+
"logPath": {
|
|
763
|
+
"default": "'/var/logs/datatruck'",
|
|
764
|
+
"type": [
|
|
765
|
+
"string",
|
|
766
|
+
"boolean"
|
|
767
|
+
]
|
|
767
768
|
}
|
|
768
769
|
},
|
|
769
770
|
"additionalProperties": false
|
|
@@ -771,6 +772,12 @@
|
|
|
771
772
|
},
|
|
772
773
|
"additionalProperties": false
|
|
773
774
|
},
|
|
775
|
+
"jobs": {
|
|
776
|
+
"type": "object",
|
|
777
|
+
"additionalProperties": {
|
|
778
|
+
"$ref": "#/definitions/Job"
|
|
779
|
+
}
|
|
780
|
+
},
|
|
774
781
|
"reports": {
|
|
775
782
|
"type": "array",
|
|
776
783
|
"items": {
|
|
@@ -1459,13 +1466,13 @@
|
|
|
1459
1466
|
"type": "string"
|
|
1460
1467
|
}
|
|
1461
1468
|
},
|
|
1462
|
-
"
|
|
1469
|
+
"keepMinutely": {
|
|
1463
1470
|
"type": "number"
|
|
1464
1471
|
},
|
|
1465
|
-
"
|
|
1472
|
+
"keepDaily": {
|
|
1466
1473
|
"type": "number"
|
|
1467
1474
|
},
|
|
1468
|
-
"
|
|
1475
|
+
"keepHourly": {
|
|
1469
1476
|
"type": "number"
|
|
1470
1477
|
},
|
|
1471
1478
|
"keepLast": {
|
|
@@ -1658,12 +1665,19 @@
|
|
|
1658
1665
|
}
|
|
1659
1666
|
]
|
|
1660
1667
|
},
|
|
1661
|
-
"
|
|
1668
|
+
"Job": {
|
|
1662
1669
|
"anyOf": [
|
|
1663
1670
|
{
|
|
1664
1671
|
"additionalProperties": false,
|
|
1665
1672
|
"type": "object",
|
|
1666
1673
|
"properties": {
|
|
1674
|
+
"action": {
|
|
1675
|
+
"type": "string",
|
|
1676
|
+
"const": "backup"
|
|
1677
|
+
},
|
|
1678
|
+
"options": {
|
|
1679
|
+
"$ref": "#/definitions/BackupCommandOptions"
|
|
1680
|
+
},
|
|
1667
1681
|
"schedule": {
|
|
1668
1682
|
"anyOf": [
|
|
1669
1683
|
{
|
|
@@ -1771,52 +1785,24 @@
|
|
|
1771
1785
|
"type": "string"
|
|
1772
1786
|
}
|
|
1773
1787
|
]
|
|
1774
|
-
},
|
|
1775
|
-
"name": {
|
|
1776
|
-
"type": "string",
|
|
1777
|
-
"const": "backup"
|
|
1778
|
-
},
|
|
1779
|
-
"options": {
|
|
1780
|
-
"type": "object",
|
|
1781
|
-
"properties": {
|
|
1782
|
-
"package": {
|
|
1783
|
-
"type": "string"
|
|
1784
|
-
},
|
|
1785
|
-
"packageTask": {
|
|
1786
|
-
"type": "string"
|
|
1787
|
-
},
|
|
1788
|
-
"repository": {
|
|
1789
|
-
"type": "string"
|
|
1790
|
-
},
|
|
1791
|
-
"repositoryType": {
|
|
1792
|
-
"type": "string"
|
|
1793
|
-
},
|
|
1794
|
-
"tag": {
|
|
1795
|
-
"type": "string"
|
|
1796
|
-
},
|
|
1797
|
-
"dryRun": {
|
|
1798
|
-
"type": "boolean"
|
|
1799
|
-
},
|
|
1800
|
-
"date": {
|
|
1801
|
-
"type": "string"
|
|
1802
|
-
},
|
|
1803
|
-
"prune": {
|
|
1804
|
-
"type": "boolean"
|
|
1805
|
-
}
|
|
1806
|
-
},
|
|
1807
|
-
"additionalProperties": false
|
|
1808
1788
|
}
|
|
1809
1789
|
},
|
|
1810
1790
|
"required": [
|
|
1811
|
-
"
|
|
1812
|
-
"options"
|
|
1813
|
-
"schedule"
|
|
1791
|
+
"action",
|
|
1792
|
+
"options"
|
|
1814
1793
|
]
|
|
1815
1794
|
},
|
|
1816
1795
|
{
|
|
1817
1796
|
"additionalProperties": false,
|
|
1818
1797
|
"type": "object",
|
|
1819
1798
|
"properties": {
|
|
1799
|
+
"action": {
|
|
1800
|
+
"type": "string",
|
|
1801
|
+
"const": "copy"
|
|
1802
|
+
},
|
|
1803
|
+
"options": {
|
|
1804
|
+
"$ref": "#/definitions/CopyCommandOptions"
|
|
1805
|
+
},
|
|
1820
1806
|
"schedule": {
|
|
1821
1807
|
"anyOf": [
|
|
1822
1808
|
{
|
|
@@ -1924,49 +1910,24 @@
|
|
|
1924
1910
|
"type": "string"
|
|
1925
1911
|
}
|
|
1926
1912
|
]
|
|
1927
|
-
},
|
|
1928
|
-
"name": {
|
|
1929
|
-
"type": "string",
|
|
1930
|
-
"const": "copy"
|
|
1931
|
-
},
|
|
1932
|
-
"options": {
|
|
1933
|
-
"type": "object",
|
|
1934
|
-
"properties": {
|
|
1935
|
-
"id": {
|
|
1936
|
-
"type": "string"
|
|
1937
|
-
},
|
|
1938
|
-
"last": {
|
|
1939
|
-
"type": "number"
|
|
1940
|
-
},
|
|
1941
|
-
"package": {
|
|
1942
|
-
"type": "string"
|
|
1943
|
-
},
|
|
1944
|
-
"packageTask": {
|
|
1945
|
-
"type": "string"
|
|
1946
|
-
},
|
|
1947
|
-
"repository": {
|
|
1948
|
-
"type": "string"
|
|
1949
|
-
},
|
|
1950
|
-
"repository2": {
|
|
1951
|
-
"type": "string"
|
|
1952
|
-
}
|
|
1953
|
-
},
|
|
1954
|
-
"additionalProperties": false,
|
|
1955
|
-
"required": [
|
|
1956
|
-
"repository"
|
|
1957
|
-
]
|
|
1958
1913
|
}
|
|
1959
1914
|
},
|
|
1960
1915
|
"required": [
|
|
1961
|
-
"
|
|
1962
|
-
"options"
|
|
1963
|
-
"schedule"
|
|
1916
|
+
"action",
|
|
1917
|
+
"options"
|
|
1964
1918
|
]
|
|
1965
1919
|
},
|
|
1966
1920
|
{
|
|
1967
1921
|
"additionalProperties": false,
|
|
1968
1922
|
"type": "object",
|
|
1969
1923
|
"properties": {
|
|
1924
|
+
"action": {
|
|
1925
|
+
"type": "string",
|
|
1926
|
+
"const": "prune"
|
|
1927
|
+
},
|
|
1928
|
+
"options": {
|
|
1929
|
+
"$ref": "#/definitions/Omit<PruneCommandOptions,\"confirm\">"
|
|
1930
|
+
},
|
|
1970
1931
|
"schedule": {
|
|
1971
1932
|
"anyOf": [
|
|
1972
1933
|
{
|
|
@@ -2074,48 +2035,156 @@
|
|
|
2074
2035
|
"type": "string"
|
|
2075
2036
|
}
|
|
2076
2037
|
]
|
|
2077
|
-
},
|
|
2078
|
-
"name": {
|
|
2079
|
-
"type": "string",
|
|
2080
|
-
"const": "prune"
|
|
2081
|
-
},
|
|
2082
|
-
"options": {
|
|
2083
|
-
"$ref": "#/definitions/Omit<PruneCommandOptions,\"confirm\">"
|
|
2084
2038
|
}
|
|
2085
2039
|
},
|
|
2086
2040
|
"required": [
|
|
2087
|
-
"
|
|
2088
|
-
"options"
|
|
2089
|
-
"schedule"
|
|
2041
|
+
"action",
|
|
2042
|
+
"options"
|
|
2090
2043
|
]
|
|
2091
2044
|
}
|
|
2092
2045
|
]
|
|
2093
2046
|
},
|
|
2094
|
-
"
|
|
2047
|
+
"BackupCommandOptions": {
|
|
2048
|
+
"additionalProperties": false,
|
|
2095
2049
|
"type": "object",
|
|
2096
2050
|
"properties": {
|
|
2097
|
-
"
|
|
2098
|
-
"type": "
|
|
2051
|
+
"dryRun": {
|
|
2052
|
+
"type": "boolean"
|
|
2099
2053
|
},
|
|
2100
|
-
"
|
|
2054
|
+
"date": {
|
|
2101
2055
|
"type": "string"
|
|
2102
2056
|
},
|
|
2103
|
-
"
|
|
2057
|
+
"prune": {
|
|
2058
|
+
"type": "boolean"
|
|
2059
|
+
},
|
|
2060
|
+
"repositoryNames": {
|
|
2061
|
+
"type": "array",
|
|
2062
|
+
"items": {
|
|
2063
|
+
"type": "string"
|
|
2064
|
+
}
|
|
2065
|
+
},
|
|
2066
|
+
"repositoryTypes": {
|
|
2067
|
+
"type": "array",
|
|
2068
|
+
"items": {
|
|
2069
|
+
"type": "string"
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
"packageNames": {
|
|
2073
|
+
"type": "array",
|
|
2074
|
+
"items": {
|
|
2075
|
+
"type": "string"
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
"packageTaskNames": {
|
|
2079
|
+
"type": "array",
|
|
2080
|
+
"items": {
|
|
2081
|
+
"type": "string"
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2084
|
+
"tags": {
|
|
2085
|
+
"type": "array",
|
|
2086
|
+
"items": {
|
|
2087
|
+
"type": "string"
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
"CopyCommandOptions": {
|
|
2093
|
+
"additionalProperties": false,
|
|
2094
|
+
"type": "object",
|
|
2095
|
+
"properties": {
|
|
2096
|
+
"repositoryName": {
|
|
2104
2097
|
"type": "string"
|
|
2105
2098
|
},
|
|
2099
|
+
"repositoryNames2": {
|
|
2100
|
+
"type": "array",
|
|
2101
|
+
"items": {
|
|
2102
|
+
"type": "string"
|
|
2103
|
+
}
|
|
2104
|
+
},
|
|
2105
|
+
"packageNames": {
|
|
2106
|
+
"type": "array",
|
|
2107
|
+
"items": {
|
|
2108
|
+
"type": "string"
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2111
|
+
"packageTaskNames": {
|
|
2112
|
+
"type": "array",
|
|
2113
|
+
"items": {
|
|
2114
|
+
"type": "string"
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
"ids": {
|
|
2118
|
+
"type": "array",
|
|
2119
|
+
"items": {
|
|
2120
|
+
"type": "string"
|
|
2121
|
+
}
|
|
2122
|
+
},
|
|
2123
|
+
"last": {
|
|
2124
|
+
"type": "number"
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
"required": [
|
|
2128
|
+
"repositoryName"
|
|
2129
|
+
]
|
|
2130
|
+
},
|
|
2131
|
+
"Omit<PruneCommandOptions,\"confirm\">": {
|
|
2132
|
+
"type": "object",
|
|
2133
|
+
"properties": {
|
|
2134
|
+
"tags": {
|
|
2135
|
+
"type": "array",
|
|
2136
|
+
"items": {
|
|
2137
|
+
"type": "string"
|
|
2138
|
+
}
|
|
2139
|
+
},
|
|
2140
|
+
"ids": {
|
|
2141
|
+
"type": "array",
|
|
2142
|
+
"items": {
|
|
2143
|
+
"type": "string"
|
|
2144
|
+
}
|
|
2145
|
+
},
|
|
2146
|
+
"repositoryNames": {
|
|
2147
|
+
"type": "array",
|
|
2148
|
+
"items": {
|
|
2149
|
+
"type": "string"
|
|
2150
|
+
}
|
|
2151
|
+
},
|
|
2152
|
+
"repositoryTypes": {
|
|
2153
|
+
"type": "array",
|
|
2154
|
+
"items": {
|
|
2155
|
+
"type": "string"
|
|
2156
|
+
}
|
|
2157
|
+
},
|
|
2158
|
+
"packageNames": {
|
|
2159
|
+
"type": "array",
|
|
2160
|
+
"items": {
|
|
2161
|
+
"type": "string"
|
|
2162
|
+
}
|
|
2163
|
+
},
|
|
2106
2164
|
"groupBy": {
|
|
2107
|
-
"type": "
|
|
2165
|
+
"type": "array",
|
|
2166
|
+
"items": {
|
|
2167
|
+
"enum": [
|
|
2168
|
+
"packageName",
|
|
2169
|
+
"repositoryName",
|
|
2170
|
+
"repositoryType"
|
|
2171
|
+
],
|
|
2172
|
+
"type": "string"
|
|
2173
|
+
}
|
|
2108
2174
|
},
|
|
2109
2175
|
"dryRun": {
|
|
2110
2176
|
"type": "boolean"
|
|
2111
2177
|
},
|
|
2112
|
-
"
|
|
2178
|
+
"showAll": {
|
|
2179
|
+
"type": "string"
|
|
2180
|
+
},
|
|
2181
|
+
"keepMinutely": {
|
|
2113
2182
|
"type": "number"
|
|
2114
2183
|
},
|
|
2115
|
-
"
|
|
2184
|
+
"keepDaily": {
|
|
2116
2185
|
"type": "number"
|
|
2117
2186
|
},
|
|
2118
|
-
"
|
|
2187
|
+
"keepHourly": {
|
|
2119
2188
|
"type": "number"
|
|
2120
2189
|
},
|
|
2121
2190
|
"keepLast": {
|
|
@@ -2130,17 +2199,8 @@
|
|
|
2130
2199
|
"keepYearly": {
|
|
2131
2200
|
"type": "number"
|
|
2132
2201
|
},
|
|
2133
|
-
"package": {
|
|
2134
|
-
"type": "string"
|
|
2135
|
-
},
|
|
2136
|
-
"tag": {
|
|
2137
|
-
"type": "string"
|
|
2138
|
-
},
|
|
2139
2202
|
"longId": {
|
|
2140
2203
|
"type": "boolean"
|
|
2141
|
-
},
|
|
2142
|
-
"showAll": {
|
|
2143
|
-
"type": "boolean"
|
|
2144
2204
|
}
|
|
2145
2205
|
},
|
|
2146
2206
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datatruck",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Tool for creating and managing backups",
|
|
5
5
|
"homepage": "https://github.com/swordev/datatruck#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"config.schema.json"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@datatruck/cli": "0.
|
|
29
|
+
"@datatruck/cli": "0.38.0"
|
|
30
30
|
},
|
|
31
31
|
"engine": {
|
|
32
32
|
"node": ">=20.0.0"
|