예제 #1
0
파일: Backup.cs 프로젝트: alevshunov/NBlog
        public void Execute(JobExecutionContext context)
        {
            var jsonRepository = Repsitory as JsonRepository;

            if (jsonRepository == null)
            {
                throw new Exception("Backup currently supports only JsonRepository");
            }

            Cloud.ArchiveFolder(jsonRepository.DataPath);
        }