Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ target
./dependency-reduced-pom.xml
/backup
.DS_Store
.idea/
.idea/
config/*.properties
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM maven:3.6.3-openjdk-11 as appbuilder
WORKDIR /project
COPY ./.classpath .
COPY ./dependency-reduced-pom.xml .
COPY ./pom.xml .
RUN mvn dependency:go-offline
COPY ./src/ ./src/
RUN mvn package

FROM openjdk:11.0.8-jdk
WORKDIR /app
COPY --from=appbuilder /project/target/smartsheet-org-backup-1.6.2.jar .
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ This command-line backup utility takes a snapshot of the data in a Smartsheet Te

Release History
------------
* Auguest 15 , 2020 - version 1.8.0:
- dockerize backup tool
* Auguest 15 , 2020 - version 1.7.0:
- fixed to remove oracle lib reference and upgraded to openjdk 11
* Jan 21, 2020 - fixed a broken link in the Readme
* Nov 9, 2018 - version 1.6.2:
- Updated vulnerable dependencies.
Expand Down Expand Up @@ -96,6 +100,15 @@ To execute the backup, run the following command `java -jar smartsheet-org-backu
Since it's a runnable jar, you don't need to set classpath or copy other jars. Everything you need is in the runnable jar.


Dockerize & Docker-Compose
--------------------------
This utility can also be used as a docker container. This sample has dockerized and a sample docker-compose file to backup.

```
docker-compose run --rm smartsheetbackup
```


Logging
------------------
* All the messages, including what is backed up as well as the folders and files being created, are logged to stdout.
Expand Down
Empty file added config/.gitkeep
Empty file.
6 changes: 3 additions & 3 deletions dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.smartsheet.tools</groupId>
<artifactId>smartsheet-org-backup</artifactId>
<name>Smartsheet Org Backup</name>
<version>1.6.1</version>
<version>1.8.0</version>
<description>Backs up the Smartsheet sheets of all users in an organization to a local directory.</description>
<build>
<pluginManagement>
Expand Down Expand Up @@ -41,8 +41,8 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>6</source>
<target>6</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
</plugins>
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3.5"
services:
smartsheetbackup:
build:
context: .
image: smartsheet/smartsheet-backup:openjdk-11
command: ["java", "-jar", "./smartsheet-org-backup-1.8.0.jar"]
volumes:
- "./backup:/app/backup"
- "./config/smartsheet-backup.properties:/app/smartsheet-backup.properties:ro"
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>6</source>
<target>6</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
</plugins>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/smartsheet/utils/HttpUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import com.smartsheet.exceptions.ServiceUnavailableException;
import com.smartsheet.restapi.service.RetryingSmartsheetService;
import com.smartsheet.tools.SmartsheetBackupTool;
import sun.misc.IOUtils;

/**
* Utilities for HTTP operations.
Expand Down