예제 #1
0
        public async Task BackupDatabase()
        {
            if (!CanSync())
            {
                return;
            }

            var filePath = IocManager.Container.Resolve <IFileHelper>().GetLocalFilePath(AppSettings.Bookshelft.SqlLiteFilename);
            await _cloudStorageService.BackupFile(filePath, new[] { "backup", DateTime.Now.ToString("yyyy-MM-dd") + " (" + UserSettings.Synchronization.DeviceName + ").backup" });
        }