Join/Login

Business Software

Open Source Software

For Vendors

Blog

About

More

Articles

Create

SourceForge Podcast

Site Documentation

Subscribe to our Newsletter

Support Request

For Vendors Help Create Join Login

Business Software

Open Source Software

SourceForge Podcast

Resources

Articles

Case Studies

Blog

Menu

Help

Create

Join

Login

Home

Browse

Iris

Calliope

Iris Calliope

2-photon scanning software

Brought to you by: heinmatt, kellgeor

Summary

Reviews

Support

Wiki

Tickets ▾

Bugs

Tasks

Feature Requests

SVN ▾

Iris Main

Auxiliary Code

Calliope

Discussion

Menu ▾ ▴

Browse Commits

Browse Files

[r1193]: / 01_DataManagement / primary_backup_define.m  Maximize  Restore  History

Download this file

37 lines (30 with data), 1.2 kB

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

function [isok, backup_source_dir, backup_destination] = primary_backup_define(proj)

% Interface to confirm back up destinations for the user

%--------------------------------------------------------------------------

%(embedded in primary_backup.m)

% doc edited by AF, 08.05.2014

isok = 0;

[~,host] = dos('hostname');

host = lower(strtrim(host));

proj_def_file = ['ProjectDefaults_' proj];

if exist(proj_def_file,'file')~=2

error(['Did not find your project definition file:' proj_def_file])

end

f=eval(proj_def_file);

backup_source_dir = f.backup_source_dir;

backup_destination = f.backup_destination;

%[~,backup_source_dir,backup_destination]=define_proj_paths(proj);

disp(['I''m ' deblank(host) '. Nice to see you! Let''s see whether everything is all right.']);

no_backup_loc = size(backup_destination,2);

for ind = 1:no_backup_loc

fprintf('%s%s',backup_destination{ind},char(13))

end

answer = input('These ones are your backup locations. Correct [y/n]? ','s');

if strcmpi(deblank(answer),'y') || isempty(strtrim(answer))

isok = 1;

else

disp('Aborting ...')

disp('Please define your project paths in ''define_proj_paths'' and try again')

isok = 0;

return

end

SourceForge

Create a Project

Open Source Software

Business Software

Top Downloaded Projects

Company

About

Team

SourceForge Headquarters
225 Broadway Suite 1600
San Diego, CA 92101
+1 (858) 422-6466

Resources

Support

Site Documentation

Site Status

SourceForge Reviews

© 2025 Slashdot Media. All Rights Reserved.

Terms Privacy Opt Out Advertise

×
Want the latest updates on software, tech news, and AI?

Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.

Submit