@Nullable
    public static Folder getNewBackupFolder(final long timestamp, final boolean autobackup) {
        final Folder folder = autobackup ? Folder.fromPersistableFolder(PersistableFolder.BACKUP, AUTO_BACKUP_FOLDER) : PersistableFolder.BACKUP.getFolder();
        final String subfoldername = Formatter.formatDateForFilename(timestamp);
        if (ContentStorage.get().exists(folder, subfoldername)) {
            return null; // We don't want to overwrite an existing backup
        }
        final Folder subfolder = Folder.fromFolder(folder, subfoldername);
        if (!ContentStorage.get().ensureFolder(subfolder, true)) {
            Log.w("Could not create/find new folder " + subfolder);
            return null;
        }
        return subfolder;
    }
Private methods containing the real backup process
main/src/main/java/cgeo/geocaching/utils/BackupUtils.java