To get the latest release from Maven Central, simply add the following to your pom.xml:
<dependency>
<groupId>io.github.holydrug</groupId>
<artifactId>yandex-backup-util</artifactId>
<version>1.0</version>
</dependency>
The releases are also available on Maven Central Repository!
To recieve token 👉👉👉👉 yandex-token-getting-started
YandexDiskUploader yandexDiskUploader = new YandexDiskUploader();
yandexDiskUploader.uploadBackupToYandexDisk(
"path/to/zip",
"path/to/save/in/yandex",
"token"
);
YandexBackupZipper yandexBackupZipper = new YandexBackupZipper();
yandexBackupZipper.zipFolder(
Path.of("what/to/zip"),
Path.of("where/to/locate")
);